From 7c0d4aca42f309b89684636ad84fd4969eac6943 Mon Sep 17 00:00:00 2001 From: Thomas Meire Date: Thu, 21 Jan 2010 01:20:08 +0100 Subject: Capture the escape key on the chat view and search bar, to make it hide the search bar --- libempathy-gtk/empathy-chat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy-gtk/empathy-chat.c') 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; -- cgit v1.2.3