From 93ba0800980abac5fd3240b8120152675e81d26a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Dec 2013 11:07:05 +0530 Subject: [PATCH] Fix changed shortcuts not being applied till tweak book is restarted --- src/calibre/gui2/keyboard.py | 2 +- src/calibre/gui2/tweak_book/boss.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/keyboard.py b/src/calibre/gui2/keyboard.py index 9c700adc1b..c781c39f3c 100644 --- a/src/calibre/gui2/keyboard.py +++ b/src/calibre/gui2/keyboard.py @@ -33,7 +33,7 @@ def finalize(shortcuts, custom_keys_map={}): # {{{ Resolve conflicts and assign keys to every action in shorcuts, which must be a OrderedDict. User specified mappings of unique names to keys (as a list of strings) should be passed in in custom_keys_map. Return a mapping - of unique names to resolved keys. Also sets the set_to_defaul member + of unique names to resolved keys. Also sets the set_to_default member correctly for each shortcut. ''' seen, keys_map = {}, {} diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 9f948702b4..4e1ee65c36 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -101,6 +101,7 @@ class Boss(QObject): if p.exec_() == p.Accepted: for ed in editors.itervalues(): ed.apply_settings() + self.gui.keyboard.finalize() def mark_requested(self, name, action): self.commit_dirty_opf()