1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibGUI: Turn GTextBox into a wrapper around a single-line GTextEditor.

This commit is contained in:
Andreas Kling 2019-04-10 03:08:29 +02:00
parent 981623f4ee
commit 313ac51832
11 changed files with 25 additions and 260 deletions

View file

@ -68,10 +68,10 @@ void GInputBox::build()
done(ExecOK);
};
m_text_editor->on_return_pressed = [this] (auto&) {
m_text_editor->on_return_pressed = [this] {
m_ok_button->click();
};
m_text_editor->on_escape_pressed = [this] (auto&) {
m_text_editor->on_escape_pressed = [this] {
m_cancel_button->click();
};
m_text_editor->set_focus(true);