From b1e87ee647705697ae1ed9ef37cece7217932bc6 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 8 Mar 2019 00:19:25 +0000 Subject: [PATCH] Add enter-based navigation to login dialog --- qml/main.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index 29aa113..0b7db72 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -101,6 +101,8 @@ ApplicationWindow { id: usernameField placeholderText: "Username" + + onAccepted: passwordField.forceActiveFocus() } AutoTextField { @@ -110,6 +112,8 @@ ApplicationWindow { placeholderText: "Password" echoMode: TextInput.Password + + onAccepted: loginDialog.doLogin() } }