changeset 9fffd77e85af in /home/hg/repos/gajim

author: Yann Leboulanger <[email protected]>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=9fffd77e85af
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 c87b83e2ed1f -r 9fffd77e85af 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
@@ -384,8 +384,12 @@
                 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)
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to