mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-28 09:42:33 -04:00
Keyboard shortcut for printing in viewer
This commit is contained in:
@@ -92,4 +92,7 @@ SHORTCUTS = {
|
||||
|
||||
'Reload': (['Ctrl+R', 'F5'],
|
||||
_('Reload the current book')),
|
||||
|
||||
'Print': (['Ctrl+P'],
|
||||
_('Print the current book')),
|
||||
}
|
||||
|
||||
@@ -962,6 +962,7 @@ class EbookViewer(MainWindow):
|
||||
'Bookmark': bac,
|
||||
'Reload': self.action_reload,
|
||||
'Table of Contents': self.action_table_of_contents,
|
||||
'Print': self.action_print,
|
||||
}.get(key, None)
|
||||
if action is not None:
|
||||
event.accept()
|
||||
|
||||
Reference in New Issue
Block a user