make cursor position change based on mouse click position

This commit is contained in:
Dante Ruiz 2017-07-14 19:30:35 +01:00
parent a9197509d8
commit 93d1725b3c

View file

@ -65,7 +65,8 @@ Rectangle {
onClicked: {
newModelDialog.keyboardEnabled = HMD.active
parent.focus = true;
parent.forceActiveFocus()
parent.forceActiveFocus();
modelURL.cursorPosition = modelURL.positionAt(mouseX, mouseY, TextInput.CursorBetweenCharaters);
}
}
}