diff options
author | Felix Kaser <f.kaser@gmx.net> | 2010-06-15 21:04:52 +0800 |
---|---|---|
committer | Felix Kaser <f.kaser@gmx.net> | 2010-07-29 21:48:13 +0800 |
commit | 2e4f5741143341616ed2cca3bf27a0204483d4ff (patch) | |
tree | d14364067e95ef007114e3932fdad2c2ea697aa4 /libempathy-gtk/empathy-live-search.c | |
parent | 4ac906564f1cfc4991f7482a8469881ef79639e8 (diff) | |
download | gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar.gz gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar.bz2 gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar.lz gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar.xz gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.tar.zst gsoc2013-empathy-2e4f5741143341616ed2cca3bf27a0204483d4ff.zip |
dont catch key up and down from the treeview
it is needed for the navigation. current implementation did catch it from the treeview and propagate it to the live search entry.
Diffstat (limited to 'libempathy-gtk/empathy-live-search.c')
-rw-r--r-- | libempathy-gtk/empathy-live-search.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c index b1ed17fad..9de2e199a 100644 --- a/libempathy-gtk/empathy-live-search.c +++ b/libempathy-gtk/empathy-live-search.c @@ -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)) |