mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Fix clearing address and cursor upon address bar closing
This commit is contained in:
parent
a347936b68
commit
1ee9317234
1 changed files with 6 additions and 3 deletions
|
@ -244,7 +244,10 @@ Window {
|
||||||
running: false
|
running: false
|
||||||
interval: 100 // ms
|
interval: 100 // ms
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: addressLine.text = ""
|
onTriggered: {
|
||||||
|
addressLine.text = "";
|
||||||
|
isCursorVisible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
|
@ -425,8 +428,6 @@ Window {
|
||||||
if (addressLine.text !== "") {
|
if (addressLine.text !== "") {
|
||||||
addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
|
addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
|
||||||
}
|
}
|
||||||
clearAddressLineTimer.start();
|
|
||||||
isCursorVisible = false;
|
|
||||||
root.shown = false;
|
root.shown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -435,11 +436,13 @@ Window {
|
||||||
case Qt.Key_Escape:
|
case Qt.Key_Escape:
|
||||||
case Qt.Key_Back:
|
case Qt.Key_Back:
|
||||||
root.shown = false
|
root.shown = false
|
||||||
|
clearAddressLineTimer.start();
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
break
|
break
|
||||||
case Qt.Key_Enter:
|
case Qt.Key_Enter:
|
||||||
case Qt.Key_Return:
|
case Qt.Key_Return:
|
||||||
toggleOrGo()
|
toggleOrGo()
|
||||||
|
clearAddressLineTimer.start();
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue