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

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

parent 6c3cda7b
......@@ -384,8 +384,12 @@ def accel_group_func(self, accel_group, acceleratable, keyval, modifier):
return True
elif control.type_id == message_control.TYPE_GC and \
keyval == gtk.keysyms.b: # CTRL + b
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':
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