mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
Remove mouse area for text fields. use activeFocusOnPress property instead
This commit is contained in:
parent
da3d5a92d9
commit
01a0b26b90
1 changed files with 6 additions and 24 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue