mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 01:39:23 +02:00
Merge pull request #10901 from druiz17/goto-keyboard-fix
Fixed the keyboard not showing up for goto in HMD mode
This commit is contained in:
commit
0374d24b15
1 changed files with 14 additions and 4 deletions
|
@ -94,10 +94,20 @@ StackView {
|
||||||
property bool keyboardEnabled: false
|
property bool keyboardEnabled: false
|
||||||
property bool keyboardRaised: false
|
property bool keyboardRaised: false
|
||||||
property bool punctuationMode: false
|
property bool punctuationMode: false
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
propagateComposedEvents: true
|
||||||
|
onPressed: {
|
||||||
|
parent.forceActiveFocus();
|
||||||
|
addressBarDialog.keyboardEnabled = false;
|
||||||
|
mouse.accepted = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
@ -227,9 +237,9 @@ StackView {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!addressLine.focus || !HMD.active) {
|
addressLine.focus = true;
|
||||||
addressLine.focus = true;
|
addressLine.forceActiveFocus();
|
||||||
addressLine.forceActiveFocus();
|
if (HMD.active) {
|
||||||
addressBarDialog.keyboardEnabled = HMD.active;
|
addressBarDialog.keyboardEnabled = HMD.active;
|
||||||
}
|
}
|
||||||
tabletRoot.playButtonClickSound();
|
tabletRoot.playButtonClickSound();
|
||||||
|
|
Loading…
Reference in a new issue