From eeea8ca48f5f3a4054934888da6796aa8162e1f3 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 19 Jun 2017 14:12:16 +0200 Subject: [PATCH] Display multiple shortcuts instead of only the first --- src/calibre/gui2/widgets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index f33c121d5a..14005f7035 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -970,9 +970,8 @@ class LayoutButton(QToolButton): def update_shortcut(self, action_toggle=None): action_toggle = action_toggle or getattr(self, 'action_toggle', None) if action_toggle: - sc = action_toggle.shortcut() - if sc: - sc = sc.toString(sc.NativeText) + sc = ', '.join(sc.toString(sc.NativeText) + for sc in action_toggle.shortcuts()) self.shortcut = sc or '' self.update_text()