[empathy] live-search:fix keyboard navigation using PageUp/PageDown (#632787)
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] live-search:fix keyboard navigation using PageUp/PageDown (#632787)
- Date: Fri, 20 May 2011 13:59:46 +0000 (UTC)
commit 50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri May 20 15:38:03 2011 +0200
live-search:fix keyboard navigation using PageUp/PageDown (#632787)
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 21aefed..a98811d 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]