Commit 1b961bb7 authored by Linus Jahn's avatar Linus Jahn

LoginPage: Jump to passField before connecting on enter

parent 7959f60c
Pipeline #9041 passed with stages
in 29 minutes and 23 seconds
......@@ -133,7 +133,10 @@ Kirigami.Page {
// connect when return was pressed
Keys.onPressed: {
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
connectButton.clicked()
if (jidField.activeFocus)
passField.forceActiveFocus()
else
connectButton.clicked()
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment