mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 19:14:41 +01:00
E-book viewer: Hide the controls when clicking the back or forward buttons
This commit is contained in:
parent
765f66d856
commit
0139ed13fe
2 changed files with 2 additions and 1 deletions
|
|
@ -653,7 +653,6 @@ def oncontextmenu(self, evt):
|
|||
def send_message(self, action, **data):
|
||||
self.comm.send_message(action, data)
|
||||
|
||||
|
||||
def connect_links(self):
|
||||
for a in document.body.querySelectorAll(f'a[{self.link_attr}]'):
|
||||
a.addEventListener('click', self.link_activated)
|
||||
|
|
|
|||
|
|
@ -428,9 +428,11 @@ def on_hide(self):
|
|||
|
||||
def back(self):
|
||||
window.history.back()
|
||||
self.overlay.hide()
|
||||
|
||||
def forward(self):
|
||||
window.history.forward()
|
||||
self.overlay.hide()
|
||||
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue