From 61e51ea1d2dcc22fe6b63c1aa00e20068c938d3a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 2 Nov 2010 22:10:57 +0100 Subject: [PATCH] Cancel Find Links when pressing Escape key --- midori/midori-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 6ccb597e..c34c6846 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1805,7 +1805,8 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view, /* Find links by number: . to show links, type number, Return to go */ if (event->keyval == '.' - || (view->find_links > -1 && (digit != -1 || event->keyval == GDK_Return))) + || (view->find_links > -1 + && (digit != -1 || event->keyval == GDK_Return || event->keyval == GDK_Escape))) { WebKitWebFrame* web_frame = webkit_web_view_get_main_frame (web_view); JSContextRef js_context = webkit_web_frame_get_global_context (web_frame); -- 2.39.5