aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-05 20:35:27 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-20 17:33:08 +0800
commitb5063fd8122ca1f5fcfbd93b7d495554d900f7f5 (patch)
tree90ceac4f17ed8237b48e5944975f42a1a766817d /libempathy-gtk
parent5405e5fc520318e12ed6a252cef37a2bb281928b (diff)
downloadgsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar.gz
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar.bz2
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar.lz
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar.xz
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.tar.zst
gsoc2013-empathy-b5063fd8122ca1f5fcfbd93b7d495554d900f7f5.zip
live-search: don't forward shift keys
Not doing so cancel any group renaming operation. https://bugzilla.gnome.org/show_bug.cgi?id=501065
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-live-search.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index 3dc77998c..f03aa9fe4 100644
--- a/libempathy-gtk/empathy-live-search.c
+++ b/libempathy-gtk/empathy-live-search.c
@@ -357,6 +357,14 @@ live_search_key_press_event_cb (GtkWidget *widget,
return FALSE;
}
+ /* Don't forward shift keys events as focusing the search entry would
+ * cancel an in-progress editing on a cell renderer (like when renaming a
+ * group). There is no point focusing it anyway as we don't display the
+ * search entry when only a shift key is pressed. */
+ if (event->keyval == GDK_KEY_Shift_L ||
+ event->keyval == GDK_KEY_Shift_R)
+ 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))