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
commit 313ac51832
Notes: sideshowbarker 2024-07-19 14:46:52 +09:00
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);