Skip to content

Commit

Permalink
Merge pull request #165 from guyonvarch/fix-focus-after-reload
Browse files Browse the repository at this point in the history
Fix focus after reload
  • Loading branch information
knuton authored May 24, 2024
2 parents 17dc536 + e37f734 commit 45b9d93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kiosk/kiosk_browser/browser_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def _view(self, status):
self._loading_page.hide()
self._network_error_page.hide()
self._webview.show()
# Set focus by clearing first, otherwise focus is lost after using CTRL+R
self._webview.clearFocus()
self._webview.setFocus()

def user_agent_with_system(user_agent, system_name, system_version):
Expand Down

0 comments on commit 45b9d93

Please sign in to comment.