diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-05-20 21:38:03 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-05-20 21:58:56 +0800 |
commit | 50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0 (patch) | |
tree | 7582cf481e9b15c6ea5b9f9ffe30dc71eac6a5a5 /libempathy-gtk/empathy-live-search.c | |
parent | c105d23a6dc033e281304a0032095f13e7fef63f (diff) | |
download | gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar.gz gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar.bz2 gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar.lz gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar.xz gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.tar.zst gsoc2013-empathy-50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0.zip |
live-search:fix keyboard navigation using PageUp/PageDown (#632787)
Diffstat (limited to 'libempathy-gtk/empathy-live-search.c')
-rw-r--r-- | libempathy-gtk/empathy-live-search.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c index 21aefed90..a98811d0b 100644 --- a/libempathy-gtk/empathy-live-search.c +++ b/libempathy-gtk/empathy-live-search.c @@ -271,7 +271,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) + if (event->keyval == GDK_KEY_Up || event->keyval == GDK_KEY_Down + || event->keyval == GDK_KEY_Page_Up || event->keyval == GDK_KEY_Page_Down) { return fire_key_navigation_sig (self, event); } @@ -347,9 +348,11 @@ live_search_key_press_event_cb (GtkWidget *widget, event->keyval == GDK_KEY_Control_R) return FALSE; - /* dont forward the up and down arrow keys to the entry, 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) + /* dont forward the up/down and Page Up/Down arrow keys to the entry, + * 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) return FALSE; if (event->keyval == GDK_KEY_Home || event->keyval == GDK_KEY_End) |