mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
E-book viewer: Fix using keyboard to extend selection not turning pages
This commit is contained in:
parent
4e839cbaf2
commit
0e9c3ea215
@ -186,6 +186,7 @@ class IframeBoss:
|
|||||||
def modify_selection(self, data):
|
def modify_selection(self, data):
|
||||||
sel = window.getSelection()
|
sel = window.getSelection()
|
||||||
sel.modify('extend', data.direction, data.granularity)
|
sel.modify('extend', data.direction, data.granularity)
|
||||||
|
self.ensure_selection_visible()
|
||||||
|
|
||||||
def initialize(self, data):
|
def initialize(self, data):
|
||||||
scroll_viewport.update_window_size(data.width, data.height)
|
scroll_viewport.update_window_size(data.width, data.height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user