Skip to content
Snippets Groups Projects
Commit 058f6321 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

close the join_gc_window when we press Escape

parent 3014afd5
No related branches found
No related tags found
No related merge requests found
...@@ -688,6 +688,10 @@ class Join_groupchat_window: ...@@ -688,6 +688,10 @@ class Join_groupchat_window:
"""close window""" """close window"""
del self.plugin.windows['join_gc'] # remove us from open windows del self.plugin.windows['join_gc'] # remove us from open windows
def on_join_groupchat_window_key_press_event(self, widget, event):
if event.keyval == gtk.keysyms.Escape: # ESCAPE
widget.destroy()
def on_recently_combobox_changed(self, widget): def on_recently_combobox_changed(self, widget):
model = widget.get_model() model = widget.get_model()
iter = widget.get_active_iter() iter = widget.get_active_iter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment