diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-04 20:17:59 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-04 20:57:33 +0800 |
commit | 2c6a500a9187f5d80de4b9c5d320ecc171658da7 (patch) | |
tree | e02f19fc067c8dfe1356896e7a5327bac244a4a3 /libempathy-gtk/empathy-live-search.c | |
parent | a474d3e479596d21dc685354d62c90e0adc6dd83 (diff) | |
download | gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar.gz gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar.bz2 gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar.lz gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar.xz gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.tar.zst gsoc2013-empathy-2c6a500a9187f5d80de4b9c5d320ecc171658da7.zip |
live-search: handle the 'Menu' key as a navigation one
Fix opening the popup menu from the 'Menu' key in the treeview.
Diffstat (limited to 'libempathy-gtk/empathy-live-search.c')
-rw-r--r-- | libempathy-gtk/empathy-live-search.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c index f03aa9fe4..bb1881fe6 100644 --- a/libempathy-gtk/empathy-live-search.c +++ b/libempathy-gtk/empathy-live-search.c @@ -264,7 +264,8 @@ live_search_entry_key_pressed_cb (GtkEntry *entry, /* emit key navigation signal, so other widgets can respond to it properly */ if (event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_Down - || event->keyval == GDK_KEY_Page_Up || event->keyval == GDK_KEY_Page_Down) + || event->keyval == GDK_KEY_Page_Up || event->keyval == GDK_KEY_Page_Down + || event->keyval == GDK_KEY_Menu) { return fire_key_navigation_sig (self, event); } @@ -345,7 +346,8 @@ live_search_key_press_event_cb (GtkWidget *widget, * they are needed for navigation in the treeview and are not needed in * the search entry */ if (event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_Down || - event->keyval == GDK_KEY_Page_Up || event->keyval == GDK_KEY_Page_Down) + event->keyval == GDK_KEY_Page_Up || event->keyval == GDK_KEY_Page_Down || + event->keyval == GDK_KEY_Menu) return FALSE; if (event->keyval == GDK_KEY_Home || event->keyval == GDK_KEY_End || |