Skip to content

Commit

Permalink
qml: Allow TextFields to be selectable in RequestPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny9 committed Nov 29, 2024
1 parent dc2aa86 commit a61fde0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/qml/controls/LabeledTextInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Item {
color: Theme.color.neutral9
placeholderTextColor: Theme.color.neutral7
background: Item {}
selectByMouse: true
onTextEdited: textEdited()
}

Expand Down
1 change: 1 addition & 0 deletions src/qml/pages/wallet/RequestConfirmation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Page {
background: Item {}
placeholderText: "0.00000000"
text: request.amount
selectByMouse: true
onTextChanged: {
bitcoinAmountText.text = bitcoinAmount.sanitize(bitcoinAmountText.text)
}
Expand Down
1 change: 1 addition & 0 deletions src/qml/pages/wallet/RequestPayment.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ StackView {
placeholderTextColor: Theme.color.neutral7
background: Item {}
placeholderText: "0.00000000"
selectByMouse: true
onTextEdited: {
amountInput.text = bitcoinAmount.sanitize(amountInput.text)
}
Expand Down

0 comments on commit a61fde0

Please sign in to comment.