Add exclamation and left parenthesis to the display filter keystroke
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 19 Nov 2006 23:23:53 +0000 (23:23 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 19 Nov 2006 23:23:53 +0000 (23:23 +0000)
catcher.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19935 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main.c

index 8d69997f711203132027dfb805b65a9ef15a6b90..9a09830b737180bd85ff42e6affaa7dfcdc8cf53 100644 (file)
@@ -3809,9 +3809,10 @@ top_level_key_pressed_cb(GtkCTree *ctree _U_, GdkEventKey *event, gpointer user_
     } else if (event->keyval == GDK_F7) {
        packet_list_prev();
        return TRUE;
-    } else if ((event->keyval >= GDK_0 && event->keyval <= GDK_9) ||
+    } else if ( (event->keyval >= GDK_0 && event->keyval <= GDK_9) ||
                (event->keyval >= GDK_A && event->keyval <= GDK_Z) ||
-               (event->keyval >= GDK_a && event->keyval <= GDK_z) ) {
+               (event->keyval >= GDK_a && event->keyval <= GDK_z) ||
+                event->keyval == GDK_exclam || event->keyval == GDK_parenleft) {
        /* Forward the keypress on to the display filter entry */
        if (main_display_filter_widget && !gtk_widget_is_focus(main_display_filter_widget)) {
            gtk_window_set_focus(GTK_WINDOW(top_level), main_display_filter_widget);