Browse Source

qml: BtcField/FiatField ImhDigitsOnly input method hint

master
Sander van Grieken 3 years ago
parent
commit
4ed69cc54f
  1. 2
      electrum/gui/qml/components/controls/BtcField.qml
  2. 2
      electrum/gui/qml/components/controls/FiatField.qml

2
electrum/gui/qml/components/controls/BtcField.qml

@ -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)

2
electrum/gui/qml/components/controls/FiatField.qml

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

Loading…
Cancel
Save