From 01a0b26b90e4146857797f49f173ab9b2f7bc9b8 Mon Sep 17 00:00:00 2001 From: vladest Date: Fri, 29 Sep 2017 17:14:35 +0200 Subject: [PATCH] Remove mouse area for text fields. use activeFocusOnPress property instead --- .../commerce/wallet/PassphraseSelection.qml | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/interface/resources/qml/hifi/commerce/wallet/PassphraseSelection.qml b/interface/resources/qml/hifi/commerce/wallet/PassphraseSelection.qml index e7ff8489d1..653f81501c 100644 --- a/interface/resources/qml/hifi/commerce/wallet/PassphraseSelection.qml +++ b/interface/resources/qml/hifi/commerce/wallet/PassphraseSelection.qml @@ -76,6 +76,8 @@ Item { height: 50; echoMode: TextInput.Password; placeholderText: "enter current passphrase"; + activeFocusOnPress: true + activeFocusOnTab: true onFocusChanged: { if (focus) { @@ -85,14 +87,6 @@ Item { } } - MouseArea { - anchors.fill: parent; - onClicked: { - parent.focus = true; - sendSignalToWallet({method: 'walletSetup_raiseKeyboard'}); - } - } - onAccepted: { passphraseField.focus = true; } @@ -109,6 +103,8 @@ Item { height: 50; echoMode: TextInput.Password; placeholderText: root.isShowingTip ? "" : "enter new passphrase"; + activeFocusOnPress: true + activeFocusOnTab: true onFocusChanged: { if (focus) { @@ -118,14 +114,6 @@ Item { } } - MouseArea { - anchors.fill: parent; - onClicked: { - parent.focus = true; - sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'}); - } - } - onAccepted: { passphraseFieldAgain.focus = true; } @@ -140,6 +128,8 @@ Item { height: 50; echoMode: TextInput.Password; placeholderText: root.isShowingTip ? "" : "re-enter new passphrase"; + activeFocusOnPress: true + activeFocusOnTab: true onFocusChanged: { if (focus) { @@ -149,14 +139,6 @@ Item { } } - MouseArea { - anchors.fill: parent; - onClicked: { - parent.focus = true; - sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'}); - } - } - onAccepted: { focus = false; }