Make sure keyboard will be rised after lowering on another click

This commit is contained in:
vladest 2017-10-01 18:54:07 +02:00
parent c3bc67b72d
commit feafd441b1

View file

@ -87,6 +87,14 @@ Item {
} }
} }
MouseArea {
anchors.fill: parent
onPressed: {
sendSignalToWallet({method: 'walletSetup_raiseKeyboard'});
mouse.accepted = false
}
}
onAccepted: { onAccepted: {
passphraseField.focus = true; passphraseField.focus = true;
} }
@ -106,6 +114,14 @@ Item {
activeFocusOnPress: true; activeFocusOnPress: true;
activeFocusOnTab: true; activeFocusOnTab: true;
MouseArea {
anchors.fill: parent
onPressed: {
sendSignalToWallet({method: 'walletSetup_raiseKeyboard'});
mouse.accepted = false
}
}
onFocusChanged: { onFocusChanged: {
if (focus) { if (focus) {
sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'}); sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'});
@ -118,6 +134,7 @@ Item {
passphraseFieldAgain.focus = true; passphraseFieldAgain.focus = true;
} }
} }
HifiControlsUit.TextField { HifiControlsUit.TextField {
id: passphraseFieldAgain; id: passphraseFieldAgain;
colorScheme: hifi.colorSchemes.dark; colorScheme: hifi.colorSchemes.dark;
@ -131,6 +148,14 @@ Item {
activeFocusOnPress: true; activeFocusOnPress: true;
activeFocusOnTab: true; activeFocusOnTab: true;
MouseArea {
anchors.fill: parent
onPressed: {
sendSignalToWallet({method: 'walletSetup_raiseKeyboard'});
mouse.accepted = false
}
}
onFocusChanged: { onFocusChanged: {
if (focus) { if (focus) {
sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'}); sendMessageToLightbox({method: 'walletSetup_raiseKeyboard'});