mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 10:33:43 +02:00
E-book viewer: Allow the up and down keys to scroll past section boundaries
This commit is contained in:
parent
164a116098
commit
23739e7dec
1 changed files with 4 additions and 0 deletions
|
|
@ -982,8 +982,12 @@ def handle_key_press(self, event):
|
|||
finally:
|
||||
self.is_auto_repeat_event = False
|
||||
elif key == 'Down':
|
||||
if self.document.at_bottom:
|
||||
self.manager.next_document()
|
||||
self.scroll_by(y=15)
|
||||
elif key == 'Up':
|
||||
if self.document.at_top:
|
||||
self.manager.previous_document()
|
||||
self.scroll_by(y=-15)
|
||||
elif key == 'Left':
|
||||
self.scroll_by(x=-15)
|
||||
|
|
|
|||
Loading…
Reference in a new issue