Fix #1927010 [[Enhancement] Add shortcut to edit notes in the Annotations browser](https://bugs.launchpad.net/calibre/+bug/1927010)

This commit is contained in:
Kovid Goyal 2021-05-04 11:03:07 +05:30
parent 11d62a8e6b
commit 62a092fd57
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)