qml: BtcField/FiatField ImhDigitsOnly input method hint
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -10,7 +10,7 @@ TextField {
|
||||
|
||||
font.family: FixedFont
|
||||
placeholderText: qsTr('Amount')
|
||||
inputMethodHints: Qt.ImhPreferNumbers
|
||||
inputMethodHints: Qt.ImhDigitsOnly
|
||||
onTextChanged: {
|
||||
if (amountFiat.activeFocus)
|
||||
btcfield.text = text == ''
|
||||
|
||||
Reference in New Issue
Block a user