mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
make cursor position change based on mouse click position
This commit is contained in:
parent
a9197509d8
commit
93d1725b3c
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
newModelDialog.keyboardEnabled = HMD.active
|
newModelDialog.keyboardEnabled = HMD.active
|
||||||
parent.focus = true;
|
parent.focus = true;
|
||||||
parent.forceActiveFocus()
|
parent.forceActiveFocus();
|
||||||
|
modelURL.cursorPosition = modelURL.positionAt(mouseX, mouseY, TextInput.CursorBetweenCharaters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue