[Xfce4-commits] <midori:master> Don't trigger completion on control characters

Christian Dywan noreply at xfce.org
Tue Jan 19 07:26:01 CET 2010


Updating branch refs/heads/master
         to 04f953dc0df041985a3eb37eb3e002be84ca6fd3 (commit)
       from 3af420622cad7f1b5c0b7f6e34198f6ac6fd1adc (commit)

commit 04f953dc0df041985a3eb37eb3e002be84ca6fd3
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jan 19 07:11:51 2010 +0100

    Don't trigger completion on control characters

 midori/midori-locationaction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 5e4f369..babce96 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, "");



More information about the Xfce4-commits mailing list