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:
parent
981623f4ee
commit
313ac51832
11 changed files with 25 additions and 260 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue