From 68087432ff629fbe5b0684eb127a12b58ed0baef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Mar 2023 17:48:57 +0530 Subject: [PATCH] Comments editor: Add a shortcut for paste and match style --- src/calibre/gui2/comments_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index d69d2b59d7..b7cd80675b 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -294,7 +294,7 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{ r('remove_format', 'edit-clear', _('Remove formatting')) r('copy', 'edit-copy', _('Copy'), shortcut=QKeySequence.StandardKey.Copy) r('paste', 'edit-paste', _('Paste'), shortcut=QKeySequence.StandardKey.Paste) - r('paste_and_match_style', 'edit-paste', _('Paste and match style')) + r('paste_and_match_style', 'edit-paste', _('Paste and match style'), shortcut=QKeySequence('ctrl+shift+v', QKeySequence.SequenceFormat.PortableText)) r('cut', 'edit-cut', _('Cut'), shortcut=QKeySequence.StandardKey.Cut) r('indent', 'format-indent-more', _('Increase indentation')) r('outdent', 'format-indent-less', _('Decrease indentation'))