diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-05 20:35:27 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-20 17:33:08 +0800 |
commit | b5063fd8122ca1f5fcfbd93b7d495554d900f7f5 (patch) | |
tree | 90ceac4f17ed8237b48e5944975f42a1a766817d /libempathy-gtk/empathy-live-search.c | |
parent | 5405e5fc520318e12ed6a252cef37a2bb281928b (diff) | |
download | gsoc2013-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/empathy-live-search.c')
-rw-r--r-- | libempathy-gtk/empathy-live-search.c | 8 |
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)) |