close the join_gc_window when we press Escape
This commit is contained in:
parent
3014afd583
commit
058f632115
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue