From 1e5b4d373dae0d593facbb5e70591f8140004807 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Oct 2021 14:35:22 +0530 Subject: [PATCH] Fix #1905479 [Edit Metadata: Non-default layout and custom longtext column breaks formatting shortcuts](https://bugs.launchpad.net/calibre/+bug/1905479) Yet again --- src/calibre/gui2/comments_editor.py | 1 + 1 file changed, 1 insertion(+) 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)