]> spindle.queued.net Git - midori/commitdiff
Don't trigger completion on control characters
authorChristian Dywan <christian@twotoasts.de>
Tue, 19 Jan 2010 06:11:51 +0000 (07:11 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 19 Jan 2010 06:11:51 +0000 (07:11 +0100)
midori/midori-locationaction.c

index 5e4f3696c2eeebee9893744109e7c2943a77634f..babce963e89a17926fbb2e2770c981844641c075 100644 (file)
@@ -919,6 +919,10 @@ midori_location_action_key_press_event_cb (GtkEntry*    entry,
         return TRUE;
     }
     default:
+        /* Don't trigger completion on control characters */
+        if (gdk_unicode_to_keyval (event->keyval) == (event->keyval | 0x01000000))
+            return FALSE;
+
         if ((text = gtk_entry_get_text (entry)) && *text)
         {
             midori_location_action_popup_completion (location_action, widget, "");