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.cResizeElements()
|
||||||
self.show()
|
self.show()
|
||||||
self.cNavigate()
|
self.cNavigate()
|
||||||
|
self.cUrlBar.setFocus()
|
||||||
|
|
||||||
def cResizeElements(self):
|
def cResizeElements(self):
|
||||||
barSize = 22
|
barSize = 22
|
||||||
@ -144,6 +145,7 @@ class browserWindow(QMainWindow):
|
|||||||
self.cDoc.cRenderHtml(response["body"].decode("utf-8",errors="ignore"))
|
self.cDoc.cRenderHtml(response["body"].decode("utf-8",errors="ignore"))
|
||||||
end = time.time()
|
end = time.time()
|
||||||
print("Rendering page: " +str(end - start))
|
print("Rendering page: " +str(end - start))
|
||||||
|
self.cDoc.setFocus()
|
||||||
self.cStatusBar.showMessage("Ready")
|
self.cStatusBar.showMessage("Ready")
|
||||||
self.update()
|
self.update()
|
||||||
#print(prettyJson(response["headers"]))
|
#print(prettyJson(response["headers"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user