close only a tab when escape is pressed in tabbed chat window
This commit is contained in:
parent
a31f210817
commit
18dc2d52be
|
@ -410,7 +410,7 @@ class tabbed_chat_Window:
|
||||||
|
|
||||||
def on_chat_key_press_event(self, widget, event):
|
def on_chat_key_press_event(self, widget, event):
|
||||||
if event.keyval == gtk.keysyms.Escape:
|
if event.keyval == gtk.keysyms.Escape:
|
||||||
widget.get_toplevel().destroy()
|
self.on_close_clicked(widget)
|
||||||
|
|
||||||
def read_queue(self, q):
|
def read_queue(self, q):
|
||||||
"""read queue and print messages containted in it"""
|
"""read queue and print messages containted in it"""
|
||||||
|
|
Loading…
Reference in New Issue