]> spindle.queued.net Git - midori/commitdiff
Make sure we exclude control characters from search
authorChristian Dywan <christian@twotoasts.de>
Sun, 22 Feb 2009 01:18:46 +0000 (02:18 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 22 Feb 2009 01:20:04 +0000 (02:20 +0100)
midori/midori-view.c

index f029583dfcc6f7a1734ca5b72445c7dc3a7c0aa5..634c9be86424b68c791e063654314d4ef728dd8d 100644 (file)
@@ -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))