1
0

qml: BtcField/FiatField ImhDigitsOnly input method hint

This commit is contained in:
Sander van Grieken
2023-03-20 14:10:13 +01:00
parent c9df290301
commit 4ed69cc54f
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ TextField {
font.family: FixedFont
placeholderText: qsTr('Amount')
inputMethodHints: Qt.ImhPreferNumbers
inputMethodHints: Qt.ImhDigitsOnly
property Amount textAsSats
onTextChanged: {
textAsSats = Config.unitsToSats(amount.text)

View File

@@ -10,7 +10,7 @@ TextField {
font.family: FixedFont
placeholderText: qsTr('Amount')
inputMethodHints: Qt.ImhPreferNumbers
inputMethodHints: Qt.ImhDigitsOnly
onTextChanged: {
if (amountFiat.activeFocus)
btcfield.text = text == ''