mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Keyboard shortcuts for Back/Forward
Fixes #1186928 [Missing keyboard shortcut in the viewer](https://bugs.launchpad.net/calibre/+bug/1186928)
This commit is contained in:
parent
230cbf46b0
commit
5c9dea7064
@ -1218,6 +1218,12 @@ class DocumentView(QWebView): # {{{
|
||||
self.paged_col_scroll()
|
||||
else:
|
||||
self.scroll_by(x=15)
|
||||
elif key == 'Back':
|
||||
if self.manager is not None:
|
||||
self.manager.back(None)
|
||||
elif key == 'Forward':
|
||||
if self.manager is not None:
|
||||
self.manager.forward(None)
|
||||
else:
|
||||
handled = False
|
||||
return handled
|
||||
|
@ -44,4 +44,10 @@ SHORTCUTS = {
|
||||
'Right' : (['L', 'Right'],
|
||||
_('Scroll right')),
|
||||
|
||||
'Back': (['Alt+Left'],
|
||||
_('Back')),
|
||||
|
||||
'Forward': (['Alt+Right'],
|
||||
_('Forward')),
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user