trying to fix focus issue

This commit is contained in:
Dante Ruiz 2017-03-25 01:17:37 +01:00
parent 9e2768cc84
commit 2a59139c76

View file

@ -35,6 +35,8 @@ StackView {
Component { id: tabletStoryCard; TabletStoryCard {} }
Component.onCompleted: {
root.currentItem.focus = true;
root.currentItem.forceActiveFocus();
fillDestinations();
updateLocationText();
root.parentChanged.connect(center);
@ -199,6 +201,7 @@ StackView {
onClicked: {
isCursorVisible = true;
parent.cursorVisible = true;
parent.focus = true;
parent.forceActiveFocus();
addressBarDialog.keyboardEnabled = HMD.active
tabletRoot.playButtonClickSound();