From 04f953dc0df041985a3eb37eb3e002be84ca6fd3 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 19 Jan 2010 07:11:51 +0100 Subject: [PATCH] Don't trigger completion on control characters --- midori/midori-locationaction.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 5e4f3696..babce963 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -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, ""); -- 2.39.5