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:
Seth Alves 2017-07-06 12:46:13 -07:00 committed by GitHub
commit 0374d24b15

View file

@ -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();