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 = """ -