mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 16:13:07 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -611,6 +611,8 @@ def onmouseup(self, evt):
|
|||
drag_mouse_position.x = drag_mouse_position.y = None
|
||||
# ensure selection bar is updated
|
||||
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):
|
||||
self.send_message('annotations', type='double-click')
|
||||
|
|
|
|||
Loading…
Reference in a new issue