From ba89de0def1eb6a4e247ec1748670fc8b62b80f0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Sep 2019 15:28:32 +0530 Subject: [PATCH] Add a fonts sub-menu to the comments editor context menu Matches the v3 context menu --- src/calibre/gui2/comments_editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index 87650f6318..864da61521 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -730,6 +730,10 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{ else: menu.addAction(self.action_paste_and_match_style) st = self.text() + m = QMenu(_('Fonts')) + m.addAction(self.action_bold), m.addAction(self.action_italic), m.addAction(self.action_underline) + menu.addMenu(m) + if st and st.strip(): self.create_change_case_menu(menu) parent = self._parent()