Commit 48ab77e6 authored by Yann Leboulanger's avatar Yann Leboulanger

Prevent Ctrl+b to open bookmarks dialog if GTK has Emacs-style keybindings enabled. Fixes #6874

parent 6c3cda7b
......@@ -384,8 +384,12 @@ class MessageWindow(object):
return True
elif control.type_id == message_control.TYPE_GC and \
keyval == gtk.keysyms.b: # CTRL + b
control._on_bookmark_room_menuitem_activate(None)
return True
# CTRL + b moves cursor one char backward when user uses Emacs
# theme
if not gtk.settings_get_default().get_property(
'gtk-key-theme-name') == 'Emacs':
control._on_bookmark_room_menuitem_activate(None)
return True
# Tab switch bindings
elif keyval == gtk.keysyms.F4: # CTRL + F4
self.remove_tab(control, self.CLOSE_CTRL_KEY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment