Skip to content
Snippets Groups Projects
Commit d7f6b64a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 34e3ff80
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment