From 84987b59cf23123a7aa36bcef3d57512dd68172e Mon Sep 17 00:00:00 2001 From: Mitternacht822 Date: Mon, 16 Feb 2026 18:28:02 +0400 Subject: [PATCH] fix(cursor): fixed cursor type at opened context menu --- client/ui/qml/Controls2/TextAreaType.qml | 3 ++- client/ui/qml/Controls2/TextAreaWithFooterType.qml | 3 ++- client/ui/qml/Controls2/TextFieldWithHeaderType.qml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/ui/qml/Controls2/TextAreaType.qml b/client/ui/qml/Controls2/TextAreaType.qml index 3200e1f35..92d104f4e 100644 --- a/client/ui/qml/Controls2/TextAreaType.qml +++ b/client/ui/qml/Controls2/TextAreaType.qml @@ -24,7 +24,7 @@ Rectangle { MouseArea { id: parentMouse anchors.fill: parent - cursorShape: Qt.IBeamCursor + cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor onClicked: textArea.forceActiveFocus() hoverEnabled: true @@ -94,6 +94,7 @@ Rectangle { wrapMode: Text.Wrap ContextMenu.menu: ContextMenuType { + id: contextMenu textObj: textArea } diff --git a/client/ui/qml/Controls2/TextAreaWithFooterType.qml b/client/ui/qml/Controls2/TextAreaWithFooterType.qml index f54a0688e..a46e3f117 100644 --- a/client/ui/qml/Controls2/TextAreaWithFooterType.qml +++ b/client/ui/qml/Controls2/TextAreaWithFooterType.qml @@ -34,7 +34,7 @@ Rectangle { MouseArea { id: parentMouse anchors.fill: parent - cursorShape: Qt.IBeamCursor + cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor onClicked: textArea.forceActiveFocus() hoverEnabled: true @@ -80,6 +80,7 @@ Rectangle { wrapMode: Text.Wrap ContextMenu.menu: ContextMenuType { + id: contextMenu textObj: textArea } diff --git a/client/ui/qml/Controls2/TextFieldWithHeaderType.qml b/client/ui/qml/Controls2/TextFieldWithHeaderType.qml index 897584303..e192535ac 100644 --- a/client/ui/qml/Controls2/TextFieldWithHeaderType.qml +++ b/client/ui/qml/Controls2/TextFieldWithHeaderType.qml @@ -135,6 +135,7 @@ Item { } ContextMenu.menu: ContextMenuType { + id: contextMenu textObj: textField } @@ -159,7 +160,7 @@ Item { MouseArea { anchors.fill: root - cursorShape: Qt.IBeamCursor + cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor hoverEnabled: true