diff options
-rw-r--r-- | src/controls/Private/TextHandle.qml | 1 | ||||
-rw-r--r-- | src/controls/Private/TextInputWithHandles.qml | 2 | ||||
-rw-r--r-- | src/controls/TextArea.qml | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/src/controls/Private/TextHandle.qml b/src/controls/Private/TextHandle.qml index 5bef4194..147f61fa 100644 --- a/src/controls/Private/TextHandle.qml +++ b/src/controls/Private/TextHandle.qml @@ -88,6 +88,7 @@ Loader { preventStealing = true } onPositionChanged: { + Qt.inputMethod.commit() var pt = mapToItem(editor, mouse.x - offset.x, mouse.y - offset.y) // limit vertically within mix/max coordinates or content bounds diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml index 5eb1bd17..f955ed28 100644 --- a/src/controls/Private/TextInputWithHandles.qml +++ b/src/controls/Private/TextInputWithHandles.qml @@ -87,7 +87,6 @@ TextInput { function moveHandles(cursor, selection) { blockRecursion = true - Qt.inputMethod.commit() cursorPosition = cursor if (selection === -1) { selectWord() @@ -159,7 +158,6 @@ TextInput { input.blockRecursion = true if (!input.hasSelection) selectionHandle.position = cursorHandle.position - Qt.inputMethod.commit() input.select(selectionHandle.position, cursorHandle.position) input.blockRecursion = false } diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml index 9c68701c..44c79122 100644 --- a/src/controls/TextArea.qml +++ b/src/controls/TextArea.qml @@ -824,7 +824,6 @@ ScrollView { function moveHandles(cursor, selection) { blockRecursion = true - Qt.inputMethod.commit() cursorPosition = cursor if (selection === -1) { selectWord() @@ -898,7 +897,6 @@ ScrollView { edit.blockRecursion = true if (!edit.hasSelection) selectionHandle.position = cursorHandle.position - Qt.inputMethod.commit() edit.select(selectionHandle.position, cursorHandle.position) edit.blockRecursion = false } |