From 62a092fd57a38fc1e1504f5a1ece9b1d81ce9884 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 May 2021 11:03:07 +0530 Subject: [PATCH] Fix #1927010 [[Enhancement] Add shortcut to edit notes in the Annotations browser](https://bugs.launchpad.net/calibre/+bug/1927010) --- src/calibre/gui2/library/annotations.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/gui2/library/annotations.py b/src/calibre/gui2/library/annotations.py index 05cdd61f8b..de20287965 100644 --- a/src/calibre/gui2/library/annotations.py +++ b/src/calibre/gui2/library/annotations.py @@ -354,6 +354,12 @@ class ResultsList(QTreeWidget): self.delete_requested.emit() ev.accept() return + if ev.key() == Qt.Key.Key_F2: + item = self.currentItem() + if item: + self.edit_notes(item) + ev.accept() + return return QTreeWidget.keyPressEvent(self, ev)