From 39427452708fe4e896d6dc533f28d02958af0772 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 30 Mar 2022 18:00:36 +0200 Subject: [PATCH] add input method hints --- electrum/gui/qml/components/Receive.qml | 2 ++ electrum/gui/qml/components/SeedTextArea.qml | 7 ++++--- electrum/gui/qml/components/Send.qml | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/Receive.qml b/electrum/gui/qml/components/Receive.qml index bbc1a1139..b405cebd9 100644 --- a/electrum/gui/qml/components/Receive.qml +++ b/electrum/gui/qml/components/Receive.qml @@ -39,6 +39,7 @@ Pane { id: amount font.family: FixedFont Layout.fillWidth: true + inputMethodHints: Qt.ImhPreferNumbers } Label { @@ -82,6 +83,7 @@ Pane { id: amountFiat font.family: FixedFont Layout.fillWidth: true + inputMethodHints: Qt.ImhDigitsOnly } Label { diff --git a/electrum/gui/qml/components/SeedTextArea.qml b/electrum/gui/qml/components/SeedTextArea.qml index a6af6b700..34bd866f8 100644 --- a/electrum/gui/qml/components/SeedTextArea.qml +++ b/electrum/gui/qml/components/SeedTextArea.qml @@ -7,11 +7,12 @@ TextArea { id: seedtext Layout.fillWidth: true Layout.minimumHeight: 80 - rightPadding: 16 - leftPadding: 16 + rightPadding: constants.paddingLarge + leftPadding: constants.paddingLarge wrapMode: TextInput.WordWrap font.bold: true - font.pixelSize: 18 + font.pixelSize: constants.fontSizeLarge + inputMethodHints: Qt.ImhSensitiveData | Qt.ImhPreferLowercase | Qt.ImhNoPredictiveText background: Rectangle { color: "transparent" border.color: Material.accentColor diff --git a/electrum/gui/qml/components/Send.qml b/electrum/gui/qml/components/Send.qml index f866d21ed..51b993386 100644 --- a/electrum/gui/qml/components/Send.qml +++ b/electrum/gui/qml/components/Send.qml @@ -42,6 +42,7 @@ Pane { id: amount font.family: FixedFont placeholderText: qsTr('Amount') + inputMethodHints: Qt.ImhPreferNumbers } Label {