diff options
author | Thomas Meire <blackskad@gmail.com> | 2010-01-21 08:20:08 +0800 |
---|---|---|
committer | Thomas Meire <blackskad@gmail.com> | 2010-01-21 08:20:09 +0800 |
commit | 7c0d4aca42f309b89684636ad84fd4969eac6943 (patch) | |
tree | ea3e33fdb6745bee526383c0a789445b57f38f5f /libempathy-gtk/empathy-chat.c | |
parent | cc0b2a8f267d1396ecae90452f4623d5b4c5ebb1 (diff) | |
download | gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar.gz gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar.bz2 gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar.lz gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar.xz gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.tar.zst gsoc2013-empathy-7c0d4aca42f309b89684636ad84fd4969eac6943.zip |
Capture the escape key on the chat view and search bar, to make it hide the search bar
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 65676b559..222258082 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1371,6 +1371,9 @@ chat_input_key_press_event_cb (GtkWidget *widget, gtk_adjustment_set_value (adj, val); return TRUE; } + if (event->keyval == GDK_Escape) { + empathy_search_bar_hide (EMPATHY_SEARCH_BAR (priv->search_bar)); + } if (!(event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) && event->keyval == GDK_Tab) { GtkTextBuffer *buffer; |