PMs can be closed with Escape; #1422
This commit is contained in:
parent
74b7b3d578
commit
8e9a7c0bc3
|
@ -455,7 +455,7 @@ class MessageWindow:
|
||||||
ctrl.set_compact_view(not ctrl.compact_view_current)
|
ctrl.set_compact_view(not ctrl.compact_view_current)
|
||||||
# Close tab bindings
|
# Close tab bindings
|
||||||
elif event.keyval == gtk.keysyms.Escape: # ESCAPE
|
elif event.keyval == gtk.keysyms.Escape: # ESCAPE
|
||||||
if ctrl.type_id == message_control.TYPE_CHAT:
|
if ctrl.type_id != message_control.TYPE_GC:
|
||||||
self.remove_tab(contact)
|
self.remove_tab(contact)
|
||||||
else:
|
else:
|
||||||
# If the active control has a message_textview pass the event to it
|
# If the active control has a message_textview pass the event to it
|
||||||
|
|
Loading…
Reference in New Issue