Add shortcuts for edit metadata and show book details to the standalone cover browser window

This commit is contained in:
Kovid Goyal 2025-02-11 17:33:30 +05:30
parent d407cdb045
commit 3be9172c51
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -288,13 +288,24 @@ class CBDialog(QDialog):
self.pre_fs_geom = None
cover_flow.setFocus(Qt.FocusReason.OtherFocusReason)
self.view_action = a = QAction(self)
iactions = gui.iactions
self.view_action = a = QAction(self)
self.addAction(a)
a.setShortcuts(list(iactions['View'].menuless_qaction.shortcuts())+
[QKeySequence(Qt.Key.Key_Space)])
a.triggered.connect(iactions['View'].menuless_qaction.trigger)
self.edit_metadata_action = a = QAction(self)
self.addAction(a)
a.setShortcuts(list(iactions['Edit Metadata'].menuless_qaction.shortcuts()))
a.triggered.connect(iactions['Edit Metadata'].menuless_qaction.trigger)
self.show_book_details_action = a = QAction(self)
self.addAction(a)
a.setShortcuts(list(iactions['Show Book Details'].menuless_qaction.shortcuts()))
a.triggered.connect(iactions['Show Book Details'].menuless_qaction.trigger)
self.auto_scroll_action = a = QAction(self)
a.setShortcuts(list(iactions['Autoscroll Books'].menuless_qaction.shortcuts()))
self.addAction(a)