summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-10-19 10:03:24 -0400
committerAndreas Kling <kling@serenityos.org>2021-10-19 18:19:33 +0200
commit05d7ac1193ef0e01724bfdf0f35ea57a0b16af59 (patch)
tree45b9695c1d0e3bdc06f572450e6c37355c6c6a4f
parent204a091765c6717c3c7a01362afcf1de385b3d87 (diff)
downloadserenity-05d7ac1193ef0e01724bfdf0f35ea57a0b16af59.zip
LoginServer: Log in when the user presses the enter key
-rw-r--r--Userland/Services/LoginServer/LoginWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/LoginServer/LoginWindow.cpp b/Userland/Services/LoginServer/LoginWindow.cpp
index 8718ec2586..6e3d32436e 100644
--- a/Userland/Services/LoginServer/LoginWindow.cpp
+++ b/Userland/Services/LoginServer/LoginWindow.cpp
@@ -33,4 +33,7 @@ LoginWindow::LoginWindow(GUI::Window* parent)
if (on_submit)
on_submit();
};
+
+ m_username->on_return_pressed = [&]() { m_log_in_button->click(); };
+ m_password->on_return_pressed = [&]() { m_log_in_button->click(); };
}