fix: enable paste from clipboard on ios in addition to android (#1868)

This commit is contained in:
Yaroslav
2025-09-29 05:56:41 +03:00
committed by GitHub
parent f3539b2632
commit 8bce432824

View File

@@ -20,8 +20,8 @@ Menu {
MenuItem {
text: qsTr("&Paste")
shortcut: StandardKey.Paste
// Fix calling paste from clipboard when launching app on android
enabled: Qt.platform.os === "android" ? true : textObj.canPaste
// Fix calling paste from clipboard when launching app on android/ios
enabled: (Qt.platform.os === "android" || Qt.platform.os === "ios") ? true : textObj.canPaste
onTriggered: textObj.paste()
}