[shtrom] Disable CTRL+W when GTK has Emacs-like key mappings. Fixes #3738
This commit is contained in:
parent
de20191e72
commit
b0d3e1f123
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue