Prevent Ctrl+f to open send file dialog if GTK has Emacs-style keybindings enabled. Fixes #6874

This commit is contained in:
Yann Leboulanger 2011-05-26 19:39:03 +02:00
parent 34e3ff804d
commit d7f6b64abe
1 changed files with 5 additions and 1 deletions

View File

@ -355,7 +355,11 @@ class MessageWindow(object):
control._on_history_menuitem_activate()
elif control.type_id == message_control.TYPE_CHAT and \
keyval == gtk.keysyms.f: # CTRL + f
control._on_send_file_menuitem_activate(None)
# CTRL + f moves cursor one char forward when user uses Emacs
# theme
if not gtk.settings_get_default().get_property(
'gtk-key-theme-name') == 'Emacs':
control._on_send_file_menuitem_activate(None)
elif control.type_id == message_control.TYPE_CHAT and \
keyval == gtk.keysyms.g: # CTRL + g
control._on_convert_to_gc_menuitem_activate(None)