mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix clicking on margins causing keyboard shortcuts to not work until the main text is clicked on again
This commit is contained in:
parent
87be626af7
commit
cd2049befd
@ -227,12 +227,14 @@ class View:
|
||||
event.preventDefault(), event.stopPropagation()
|
||||
sd = get_session_data()
|
||||
self.iframe_wrapper.send_message('next_screen', backwards=True, all_pages_on_screen=sd.get('paged_margin_clicks_scroll_by_screen'))
|
||||
self.focus_iframe()
|
||||
|
||||
def right_margin_clicked(self, event):
|
||||
if event.button is 0:
|
||||
event.preventDefault(), event.stopPropagation()
|
||||
sd = get_session_data()
|
||||
self.iframe_wrapper.send_message('next_screen', backwards=False, all_pages_on_screen=sd.get('paged_margin_clicks_scroll_by_screen'))
|
||||
self.focus_iframe()
|
||||
|
||||
def top_margin_clicked(self, event):
|
||||
if event.button is 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user