From 98b44990bbbcb0cbb72febd4b64ef4320a14e77f Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 18 Jul 2005 15:35:15 +0000 Subject: [PATCH] Ctrl+W closes tab --- src/chat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat.py b/src/chat.py index cd369764d..058d33e5c 100644 --- a/src/chat.py +++ b/src/chat.py @@ -432,6 +432,9 @@ class Chat: elif event.keyval == gtk.keysyms.F4 and \ (event.state & gtk.gdk.CONTROL_MASK): # CTRL + F4 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 \ (event.state & gtk.gdk.MOD1_MASK): # alt + 1,2,3.. self.notebook.set_current_page(st.index(event.string))