[Xfce4-commits] <midori:master> Cancel Find Links when pressing Escape key
Christian Dywan
noreply at xfce.org
Tue Nov 2 22:46:01 CET 2010
Updating branch refs/heads/master
to 61e51ea1d2dcc22fe6b63c1aa00e20068c938d3a (commit)
from d1c967c0557afaf2a66291c015fa054ac999eab0 (commit)
commit 61e51ea1d2dcc22fe6b63c1aa00e20068c938d3a
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Nov 2 22:10:57 2010 +0100
Cancel Find Links when pressing Escape key
midori/midori-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 6ccb597..c34c684 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);
More information about the Xfce4-commits
mailing list