aboutsummaryrefslogtreecommitdiff
path: root/components/PasswordDialog.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-12-10 02:48:03 +0100
committerselsta <selsta@sent.at>2019-12-10 02:52:15 +0100
commit38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d (patch)
tree07c97f4261adc51ade28fa0df1024a8208fe4b0f /components/PasswordDialog.qml
parentf03ea0461c3a9ae897e44af64ac6caf2cc92b9c9 (diff)
downloadmonzero-gui-38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d.tar.gz
monzero-gui-38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d.tar.xz
monzero-gui-38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d.zip
components: handle enter and return
Diffstat (limited to 'components/PasswordDialog.qml')
-rw-r--r--components/PasswordDialog.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index 18bccdfe..587d484e 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -254,6 +254,7 @@ Item {
}
Keys.enabled: root.visible
+ Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
root.close()
if (passwordDialogMode) {
@@ -352,6 +353,8 @@ Item {
}
}
+ Keys.enabled: root.visible
+ Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
if (passwordInput1.text === passwordInput2.text) {
root.close()