From 9829498d5787a99098c992d84e9a51df43e1898e Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 28 Aug 2026 13:25:54 +0200 Subject: [PATCH] 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. --- kde/gui/ChatPane.qml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/kde/gui/ChatPane.qml b/kde/gui/ChatPane.qml index aea6f4a..aea7e77 100644 --- a/kde/gui/ChatPane.qml +++ b/kde/gui/ChatPane.qml @@ -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 {