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:
Levi Neely 2026-08-28 13:25:54 +02:00
parent 9307cc86de
commit 9829498d57
1 changed files with 5 additions and 8 deletions

View File

@ -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 {