Focus fix

This commit is contained in:
Zach Fox 2017-04-13 16:10:36 -07:00
parent 520ceebf5b
commit 0543709081

View file

@ -198,10 +198,11 @@ StackView {
color: hifiStyleConstants.colors.lightGray color: hifiStyleConstants.colors.lightGray
opacity: 0.1 opacity: 0.1
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent;
onClicked: { onClicked: {
if (!addressLine.focus || !HMD.active) { if (!addressLine.focus || !HMD.active) {
addressLine.focus = true; addressLine.focus = true;
addressLine.forceActiveFocus();
addressBarDialog.keyboardEnabled = HMD.active; addressBarDialog.keyboardEnabled = HMD.active;
} else { } else {
addressLine.focus = false; addressLine.focus = false;
@ -516,7 +517,7 @@ StackView {
function updateLocationText(enteringAddress) { function updateLocationText(enteringAddress) {
if (enteringAddress) { if (enteringAddress) {
notice.text = "Go to a place, @user, path or network address"; notice.text = "Go To a place, @user, path, or network address:";
notice.color = hifiStyleConstants.colors.baseGrayHighlight; notice.color = hifiStyleConstants.colors.baseGrayHighlight;
} else { } else {
notice.text = AddressManager.isConnected ? "Your location:" : "Not Connected"; notice.text = AddressManager.isConnected ? "Your location:" : "Not Connected";