Set focus when navigating or opening window
This commit is contained in:
parent
4e204d245f
commit
01e77a5a0c
@ -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"]))
|
||||
|
Loading…
Reference in New Issue
Block a user