1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LoginServer: Log in when the user presses the enter key

This commit is contained in:
Timothy Flynn 2021-10-19 10:03:24 -04:00 committed by Andreas Kling
parent 204a091765
commit 05d7ac1193

View file

@ -33,4 +33,7 @@ LoginWindow::LoginWindow(GUI::Window* parent)
if (on_submit) if (on_submit)
on_submit(); on_submit();
}; };
m_username->on_return_pressed = [&]() { m_log_in_button->click(); };
m_password->on_return_pressed = [&]() { m_log_in_button->click(); };
} }