Set focus when navigating or opening window

This commit is contained in:
Fierelier 2021-03-20 16:00:27 +01:00
parent 4e204d245f
commit 01e77a5a0c

View File

@ -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"]))