1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-08-05 20:47:35 +00:00

LibGUI+LoginServer: Use default buttons in InputBox and LoginWindow

This commit is contained in:
thankyouverycool 2022-01-24 14:29:21 -05:00 committed by Andreas Kling
parent f77ac3a73c
commit 7beea36052
2 changed files with 2 additions and 6 deletions

View file

@ -35,7 +35,5 @@ 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(); };
m_log_in_button->set_default(true);
}