From 38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 10 Dec 2019 02:48:03 +0100 Subject: components: handle enter and return --- components/PasswordDialog.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/PasswordDialog.qml') 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() -- cgit v1.2.3