close the join_gc_window when we press Escape

This commit is contained in:
Yann Leboulanger 2005-04-07 09:53:54 +00:00
parent 3014afd583
commit 058f632115
1 changed files with 4 additions and 0 deletions

View File

@ -688,6 +688,10 @@ class Join_groupchat_window:
"""close window"""
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):
model = widget.get_model()
iter = widget.get_active_iter()