[bijiben/gnome-3-10] Search Toolbar: do not trigger on tab, return, arrows



commit 8e026fd09bb48939acbfa5e7e276cfde773bfe46
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Fri Feb 28 23:01:02 2014 +0100

    Search Toolbar: do not trigger on tab, return, arrows

 src/bjb-search-toolbar.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-search-toolbar.c b/src/bjb-search-toolbar.c
index eb9f79c..0a9c230 100644
--- a/src/bjb-search-toolbar.c
+++ b/src/bjb-search-toolbar.c
@@ -145,7 +145,15 @@ on_key_pressed (GtkWidget *widget,GdkEvent  *event,gpointer user_data)
       case GDK_KEY_Shift_R :
       case GDK_KEY_Alt_L :
       case GDK_KEY_Alt_R :
-        return TRUE ;
+      case GDK_KEY_Tab :
+      case GDK_KEY_space :
+      case GDK_KEY_BackSpace:
+      case GDK_KEY_Left:
+      case GDK_KEY_Right:
+      case GDK_KEY_Up:
+      case GDK_KEY_Down :
+      case GDK_KEY_Return :
+        return FALSE;
 
       default:
         if (event->key.keyval != GDK_KEY_Escape)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]