mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 14:52:46 +02:00
Force active focus on the address bar line while address bar is visible
This commit is contained in:
parent
1b82200ecb
commit
44b9bc7115
1 changed files with 11 additions and 0 deletions
|
@ -151,6 +151,17 @@ DialogContainer {
|
||||||
addressLine.forceActiveFocus()
|
addressLine.forceActiveFocus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Timer {
|
||||||
|
running: root.enabled
|
||||||
|
interval: 500
|
||||||
|
repeat: true
|
||||||
|
onTriggered: {
|
||||||
|
if (root.enabled && !addressLine.activeFocus) {
|
||||||
|
addressLine.forceActiveFocus()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
|
|
Loading…
Reference in a new issue