Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkdeclarative
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#417
  • Loading branch information
deepin-ci-robot authored and kegechen committed Nov 15, 2024
1 parent dd75022 commit e7a9a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qt6/src/qml/TextField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7a9a15

Please sign in to comment.