diff --git a/data/glade/history_window.glade b/data/glade/history_window.glade index 7e2b62aee..ba74ec04c 100644 --- a/data/glade/history_window.glade +++ b/data/glade/history_window.glade @@ -7,6 +7,7 @@ history 650 350 + @@ -17,7 +18,6 @@ True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 GTK_SHADOW_NONE @@ -64,7 +64,6 @@ Enter the jid of a groupchat or a contact here. For online accounts you can even True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 GTK_SHADOW_NONE diff --git a/src/history_window.py b/src/history_window.py index 34b3fee9f..c85683009 100644 --- a/src/history_window.py +++ b/src/history_window.py @@ -142,6 +142,10 @@ class HistoryWindow: self.history_textview.del_handlers() del gajim.interface.instances['logs'] + def on_history_window_key_press_event(self, widget, event): + if event.keyval == gtk.keysyms.Escape: + self.window.destroy() + def on_close_button_clicked(self, widget): self.window.destroy()