diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index 992f64d682..d3ee7e140f 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -260,6 +260,7 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{ def r(name, icon, text, checkable=False, shortcut=None): ac = QAction(QIcon(I(icon + '.png')), text, self) + ac.setShortcutContext(Qt.ShortcutContext.WidgetWithChildrenShortcut) if checkable: ac.setCheckable(checkable) setattr(self, 'action_'+name, ac)