Keyboard shortcut for printing in viewer

This commit is contained in:
Kovid Goyal 2015-05-02 10:18:52 +05:30
parent 5e04c1f9f8
commit c73e1ff90f
2 changed files with 4 additions and 0 deletions

View File

@ -92,4 +92,7 @@ SHORTCUTS = {
'Reload': (['Ctrl+R', 'F5'], 'Reload': (['Ctrl+R', 'F5'],
_('Reload the current book')), _('Reload the current book')),
'Print': (['Ctrl+P'],
_('Print the current book')),
} }

View File

@ -962,6 +962,7 @@ class EbookViewer(MainWindow):
'Bookmark': bac, 'Bookmark': bac,
'Reload': self.action_reload, 'Reload': self.action_reload,
'Table of Contents': self.action_table_of_contents, 'Table of Contents': self.action_table_of_contents,
'Print': self.action_print,
}.get(key, None) }.get(key, None)
if action is not None: if action is not None:
event.accept() event.accept()