From d2c5d89defede0a3ab658b0dc356370f1c377858 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 22 Feb 2009 02:18:46 +0100 Subject: [PATCH] Make sure we exclude control characters from search --- midori/midori-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index f029583d..634c9be8 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -813,6 +813,9 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view, MidoriView* view) { guint character = gdk_unicode_to_keyval (event->keyval); + /* Skip control characters */ + if (character == (event->keyval | 0x01000000)) + return FALSE; if (!webkit_web_view_can_cut_clipboard (web_view) && !webkit_web_view_can_paste_clipboard (web_view)) -- 2.39.5