Verified Commit 1106ca28 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

sddm-theme: Make login button react to Enter and Return keys

Because why not; and also because it makes for a nice flow when user
does not have a password set: just press Enter (twice, if focused on a
user list).
parent 914173a2
Pipeline #174649 passed with stage
in 7 minutes and 41 seconds
......@@ -108,6 +108,8 @@ SessionManagementScreen {
icon.name: LayoutMirroring.enabled ? "go-previous" : "go-next"
onClicked: startLogin()
Keys.onEnterPressed: clicked()
Keys.onReturnPressed: clicked()
}
}
}
......@@ -137,6 +137,8 @@ SessionManagementScreen {
text: root.showUsernamePrompt || userList.currentItem.needsPassword ? "" : i18n("Log In")
onClicked: startLogin()
Keys.onEnterPressed: clicked()
Keys.onReturnPressed: clicked()
}
}
}
Supports Markdown
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