From: Christian Dywan Date: Tue, 19 Jan 2010 06:11:51 +0000 (+0100) Subject: Don't trigger completion on control characters X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04f953dc0df041985a3eb37eb3e002be84ca6fd3;p=midori Don't trigger completion on control characters --- 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, "");