summaryrefslogtreecommitdiff
path: root/src/controls/Private/TextInputWithHandles.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Private/TextInputWithHandles.qml')
-rw-r--r--src/controls/Private/TextInputWithHandles.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml
index f3348774..5ca81aa1 100644
--- a/src/controls/Private/TextInputWithHandles.qml
+++ b/src/controls/Private/TextInputWithHandles.qml
@@ -104,7 +104,7 @@ TextInput {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.IBeamCursor
- acceptedButtons: input.selectByMouse ? Qt.NoButton : Qt.LeftButton
+ acceptedButtons: (input.selectByMouse ? Qt.NoButton : Qt.LeftButton) | (control.menu ? Qt.RightButton : Qt.NoButton)
onClicked: {
var pos = input.positionAt(mouse.x, mouse.y)
input.moveHandles(pos, pos)
@@ -120,6 +120,7 @@ TextInput {
EditMenu {
id: editMenu
input: parent
+ mouseArea: mouseArea
control: parent.control
cursorHandle: cursorHandle
selectionHandle: selectionHandle