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:
parent
204a091765
commit
05d7ac1193
1 changed files with 3 additions and 0 deletions
|
@ -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(); };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue