From: Christian Dywan Date: Tue, 2 Nov 2010 21:10:57 +0000 (+0100) Subject: Cancel Find Links when pressing Escape key X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e51ea1d2dcc22fe6b63c1aa00e20068c938d3a;p=midori Cancel Find Links when pressing Escape key --- 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);