From 01e77a5a0c0cfc54576b16aad3ed397f23319526 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sat, 20 Mar 2021 16:00:27 +0100 Subject: [PATCH] Set focus when navigating or opening window --- BirdyNet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BirdyNet.py b/BirdyNet.py index 22dff38..8344bbf 100644 --- a/BirdyNet.py +++ b/BirdyNet.py @@ -105,6 +105,7 @@ class browserWindow(QMainWindow): self.cResizeElements() self.show() self.cNavigate() + self.cUrlBar.setFocus() def cResizeElements(self): barSize = 22 @@ -144,6 +145,7 @@ class browserWindow(QMainWindow): self.cDoc.cRenderHtml(response["body"].decode("utf-8",errors="ignore")) end = time.time() print("Rendering page: " +str(end - start)) + self.cDoc.setFocus() self.cStatusBar.showMessage("Ready") self.update() #print(prettyJson(response["headers"]))