aboutsummaryrefslogtreecommitdiff
path: root/components/LineEdit.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-12-02 23:55:42 +0000
committerxiphon <xiphon@protonmail.com>2020-12-03 19:40:15 +0000
commit0d5d2dbf5ea5cc575b1e38854e935a8f1794146b (patch)
treee8de25d2a9e3f4e2c675cb8f1ccb2728872e0577 /components/LineEdit.qml
parent96f9c11320ee3c4f1f1c35f3ac8e8f78340bd378 (diff)
downloadmonzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.tar.gz
monzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.tar.xz
monzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.zip
Transfer: fix focus, cycle focus between Address, Amount and Send
Diffstat (limited to 'components/LineEdit.qml')
-rw-r--r--components/LineEdit.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml
index 118067f4..aad42895 100644
--- a/components/LineEdit.qml
+++ b/components/LineEdit.qml
@@ -94,6 +94,7 @@ Item {
height: showingHeader ? (inputLabel.height + inputItem.height + 2) : 42
+ onActiveFocusChanged: activeFocus && input.forceActiveFocus()
onTextUpdated: {
// check to remove placeholder text when there is content
if(item.isEmpty()){
@@ -234,6 +235,7 @@ Item {
anchors.leftMargin: inlineIcon.visible ? 44 : 0
font.pixelSize: item.fontSize
font.bold: item.fontBold
+ KeyNavigation.tab: item.KeyNavigation.tab
onEditingFinished: item.editingFinished()
onAccepted: item.accepted();
onTextChanged: item.textUpdated()