]> git.0d.be Git - empathy.git/commitdiff
dont catch key up and down from the treeview
authorFelix Kaser <f.kaser@gmx.net>
Tue, 15 Jun 2010 13:04:52 +0000 (15:04 +0200)
committerFelix Kaser <f.kaser@gmx.net>
Thu, 29 Jul 2010 13:48:13 +0000 (15:48 +0200)
it is needed for the navigation. current implementation did catch it from the treeview and propagate it to the live search entry.

libempathy-gtk/empathy-live-search.c

index b1ed17fadc8d5885af37276f33e474a65e89b089..9de2e199ac3f71c2c6598e1956969e990e98a1c7 100644 (file)
@@ -197,6 +197,11 @@ live_search_key_press_event_cb (GtkWidget *widget,
       event->keyval == GDK_Control_R)
     return FALSE;
 
+  /* dont forward the arrow up/down key to the entry, it is needed for
+   * navigation in the treeview */
+   if (event->keyval == GDK_Up || event->keyval == GDK_Down)
+    return FALSE;
+
   /* realize the widget if it is not realized yet */
   gtk_widget_realize (priv->search_entry);
   if (!gtk_widget_has_focus (priv->search_entry))