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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Context menu overlay - only catches right-click, on top of ScrollView
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.RightButton
|
||||
cursorShape: Qt.IBeamCursor
|
||||
onClicked: promptContextMenu.popup()
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
onTapped: promptContextMenu.popup()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Menu {
|
||||
|
|
|
|||
Loading…
Reference in New Issue