mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 13:44:32 +02:00
Merge pull request #8765 from ctrlaltdavid/fix-address-bar
Fix address bar not being able to regain focus
This commit is contained in:
commit
2b8765b47e
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,7 @@ Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onActiveFocusChanged: {
|
onActiveFocusChanged: {
|
||||||
cursorVisible = isCursorVisible;
|
cursorVisible = isCursorVisible && focus;
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
// If user clicks in address bar show cursor to indicate ability to enter address.
|
// If user clicks in address bar show cursor to indicate ability to enter address.
|
||||||
|
@ -229,6 +229,7 @@ Window {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
isCursorVisible = true;
|
isCursorVisible = true;
|
||||||
parent.cursorVisible = true;
|
parent.cursorVisible = true;
|
||||||
|
parent.forceActiveFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue