[bijiben] Do not trigger Search on function keys



commit 4b4cc61e3e15f97be6e668760b40fd7c7da490a5
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Wed Jul 30 00:58:19 2014 +0200

    Do not trigger Search on function keys
    
    Reserve function keys for bjb-window-base

 src/bjb-window-base.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-window-base.c b/src/bjb-window-base.c
index 8c7b211..174d9ac 100644
--- a/src/bjb-window-base.c
+++ b/src/bjb-window-base.c
@@ -143,10 +143,24 @@ on_key_pressed_cb (GtkWidget *w, GdkEvent *event, gpointer user_data)
 {
   switch (event->key.keyval)
   {
+    /* Help on F1 */
     case GDK_KEY_F1:
       help_activated (NULL, NULL, NULL);
       return TRUE;
 
+    /* Reserve other func keys for window */
+    case GDK_KEY_F2:
+    case GDK_KEY_F3:
+    case GDK_KEY_F4:
+    case GDK_KEY_F5:
+    case GDK_KEY_F6:
+    case GDK_KEY_F7:
+    case GDK_KEY_F8:
+    case GDK_KEY_F9:
+    case GDK_KEY_F10:
+    case GDK_KEY_F11:
+      return TRUE;
+
     default:
       return FALSE;
   }


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