aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-20 22:02:44 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-20 22:02:44 +0800
commitd94c2c708734d6a41cd6d6ad44684a816b66cff8 (patch)
tree32c2c193f51cb2a6dbf1ac5dee7d0086bc426f2e /libempathy-gtk
parent50cc20d66183eb0e4a8fd1384dea77fdf3e29cf0 (diff)
downloadgsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar.gz
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar.bz2
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar.lz
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar.xz
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.tar.zst
gsoc2013-empathy-d94c2c708734d6a41cd6d6ad44684a816b66cff8.zip
live-search: fix keyboard navigation using Space (#632787)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-live-search.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index a98811d0b..be3f1e3c6 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -277,10 +277,11 @@ live_search_entry_key_pressed_cb (GtkEntry *entry,
return fire_key_navigation_sig (self, event);
}
- if (event->keyval == GDK_KEY_Home || event->keyval == GDK_KEY_End)
+ if (event->keyval == GDK_KEY_Home || event->keyval == GDK_KEY_End ||
+ event->keyval == GDK_KEY_space)
{
/* If the live search is visible, the entry should catch the Home/End
- * events */
+ * and space events */
if (!gtk_widget_get_visible (GTK_WIDGET (self)))
{
return fire_key_navigation_sig (self, event);
@@ -355,10 +356,11 @@ live_search_key_press_event_cb (GtkWidget *widget,
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)
+ if (event->keyval == GDK_KEY_Home || event->keyval == GDK_KEY_End ||
+ event->keyval == GDK_KEY_space)
{
- /* Home/End keys have to be forwarded to the entry only if the live
- * search is visible (to move the cursor inside the entry). */
+ /* Home/End and space keys have to be forwarded to the entry only if
+ * the live search is visible (to move the cursor inside the entry). */
if (!gtk_widget_get_visible (GTK_WIDGET (self)))
return FALSE;
}