From 44981e6f5c8534c1f595c54cd8370bbca3a37329 Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Sat, 29 Nov 2025 18:30:52 +0000 Subject: [PATCH] Fix: Refocus when toolbar pressed to prevent blocking shortcut input --- qt/aqt/toolbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/toolbar.py b/qt/aqt/toolbar.py index 7c617483f..4517453ac 100644 --- a/qt/aqt/toolbar.py +++ b/qt/aqt/toolbar.py @@ -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 = """ -
+
{left_tray_content}
{toolbar_content}
{right_tray_content}