changeset 15fc5a87b09a in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=15fc5a87b09a description: Prevent Ctrl+b to open bookmarks dialog if GTK has Emacs-style keybindings enabled. Fixes #6874
diffstat:
src/message_window.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1a0931ee7639 -r 15fc5a87b09a src/message_window.py --- a/src/message_window.py Sat Jun 20 21:30:48 2015 +0200 +++ b/src/message_window.py Mon Jul 13 10:14:34 2015 +0200 @@ -386,8 +386,12 @@ return True elif control.type_id == message_control.TYPE_GC and \ keyval == Gdk.KEY_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 == Gdk.KEY_F4: # CTRL + F4 self.remove_tab(control, self.CLOSE_CTRL_KEY)