gui: fix text selection in prompt box
Replace MouseArea overlay with TapHandler inside TextArea. The MouseArea sat on top and intercepted left-button press events, blocking click-and-drag text selection. TapHandler cooperates with the TextArea's built-in selection handling.
This commit is contained in:
parent
9307cc86de
commit
9829498d57
|
|
@ -253,15 +253,12 @@ Item {
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Context menu overlay - only catches right-click, on top of ScrollView
|
TapHandler {
|
||||||
MouseArea {
|
acceptedButtons: Qt.RightButton
|
||||||
anchors.fill: parent
|
onTapped: promptContextMenu.popup()
|
||||||
acceptedButtons: Qt.RightButton
|
}
|
||||||
cursorShape: Qt.IBeamCursor
|
}
|
||||||
onClicked: promptContextMenu.popup()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu {
|
Menu {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue