mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Viewer: back and forward buttons on the mouse now trigger the back and forward actions
This commit is contained in:
parent
826295a229
commit
a5db80bb55
@ -611,6 +611,8 @@ class IframeBoss:
|
|||||||
drag_mouse_position.x = drag_mouse_position.y = None
|
drag_mouse_position.x = drag_mouse_position.y = None
|
||||||
# ensure selection bar is updated
|
# ensure selection bar is updated
|
||||||
self.onselectionchange()
|
self.onselectionchange()
|
||||||
|
if evt.button is 3 or evt.button is 4:
|
||||||
|
self.send_message('handle_shortcut', name='back' if evt.button is 3 else 'forward')
|
||||||
|
|
||||||
def ondoubleclick(self, evt):
|
def ondoubleclick(self, evt):
|
||||||
self.send_message('annotations', type='double-click')
|
self.send_message('annotations', type='double-click')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user