diff --git a/qt6/src/qml/TextField.qml b/qt6/src/qml/TextField.qml index c2a8c536..47985026 100644 --- a/qt6/src/qml/TextField.qml +++ b/qt6/src/qml/TextField.qml @@ -77,14 +77,14 @@ T.TextField { { text: qsTr("Copy") onTriggered: control.copy() - enabled: control.selectedText.length + enabled: control.selectedText.length && control.echoMode === TextInput.Normal } MenuItem { text: qsTr("Cut") onTriggered: control.cut() - enabled: control.selectedText.length + enabled: !control.readonly && control.selectedText.length && control.echoMode === TextInput.Normal } MenuItem