Prevent Ctrl+b to open bookmarks dialog if GTK has Emacs-style keybindings enabled. Fixes #6874
This commit is contained in:
parent
087d2a05b9
commit
86229e52c4
1 changed files with 6 additions and 2 deletions
|
@ -386,6 +386,10 @@ class MessageWindow(object):
|
||||||
return True
|
return True
|
||||||
elif control.type_id == message_control.TYPE_GC and \
|
elif control.type_id == message_control.TYPE_GC and \
|
||||||
keyval == Gdk.KEY_b: # CTRL + b
|
keyval == Gdk.KEY_b: # CTRL + b
|
||||||
|
# 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)
|
control._on_bookmark_room_menuitem_activate(None)
|
||||||
return True
|
return True
|
||||||
# Tab switch bindings
|
# Tab switch bindings
|
||||||
|
|
Loading…
Add table
Reference in a new issue