Ctrl+W closes tab

This commit is contained in:
Nikos Kouremenos 2005-07-18 15:35:15 +00:00
parent 4ec2eea678
commit 98b44990bb
1 changed files with 3 additions and 0 deletions

View File

@ -432,6 +432,9 @@ class Chat:
elif event.keyval == gtk.keysyms.F4 and \ elif event.keyval == gtk.keysyms.F4 and \
(event.state & gtk.gdk.CONTROL_MASK): # CTRL + F4 (event.state & gtk.gdk.CONTROL_MASK): # CTRL + F4
self.remove_tab(jid) self.remove_tab(jid)
elif event.keyval == gtk.keysyms.w and \
(event.state & gtk.gdk.CONTROL_MASK): # CTRL + W
self.remove_tab(jid)
elif event.string and event.string in st and \ elif event.string and event.string in st and \
(event.state & gtk.gdk.MOD1_MASK): # alt + 1,2,3.. (event.state & gtk.gdk.MOD1_MASK): # alt + 1,2,3..
self.notebook.set_current_page(st.index(event.string)) self.notebook.set_current_page(st.index(event.string))