[shtrom] Disable CTRL+W when GTK has Emacs-like key mappings. Fixes #3738

This commit is contained in:
Yann Leboulanger 2008-02-17 20:57:47 +00:00
parent de20191e72
commit b0d3e1f123
1 changed files with 5 additions and 1 deletions

View File

@ -300,6 +300,10 @@ class MessageWindow(object):
elif keyval == gtk.keysyms.F4: # CTRL + F4
self.remove_tab(control, self.CLOSE_CTRL_KEY)
elif keyval == gtk.keysyms.w: # CTRL + W
# CTRL + W removes latest word before sursor when User uses emacs
# theme
if not gtk.settings_get_default().get_property(
'gtk-key-theme-name') == 'Emacs':
self.remove_tab(control, self.CLOSE_CTRL_KEY)
# MOD1 (ALT) mask