mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix: Refocus when toolbar pressed to prevent blocking shortcut input
This commit is contained in:
parent
6d35ce61be
commit
44981e6f5c
1 changed files with 2 additions and 1 deletions
|
|
@ -430,6 +430,7 @@ class Toolbar:
|
|||
######################################################################
|
||||
|
||||
def _linkHandler(self, link: str) -> bool:
|
||||
self.mw.web.setFocus()
|
||||
if link in self.link_handlers:
|
||||
self.link_handlers[link]()
|
||||
return False
|
||||
|
|
@ -461,7 +462,7 @@ class Toolbar:
|
|||
######################################################################
|
||||
|
||||
_body = """
|
||||
<div class="header">
|
||||
<div class="header" onclick="pycmd('focus')">
|
||||
<div class="left-tray">{left_tray_content}</div>
|
||||
<div class="toolbar">{toolbar_content}</div>
|
||||
<div class="right-tray">{right_tray_content}</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue