From 3be9172c519d68d0fd87647f917fd5c89da33e19 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Feb 2025 17:33:30 +0530 Subject: [PATCH] Add shortcuts for edit metadata and show book details to the standalone cover browser window --- src/calibre/gui2/cover_flow.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/cover_flow.py b/src/calibre/gui2/cover_flow.py index de1866ee89..9b92e29a80 100644 --- a/src/calibre/gui2/cover_flow.py +++ b/src/calibre/gui2/cover_flow.py @@ -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)