mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:37:47 +00:00
LibGUI: Flesh out focus implementation and more GTextBox work.
This commit is contained in:
parent
d72575d196
commit
de2423de5f
10 changed files with 54 additions and 27 deletions
|
@ -110,6 +110,12 @@ GWindow* make_launcher_window()
|
|||
|
||||
auto* textbox = new GTextBox(widget);
|
||||
textbox->set_relative_rect({ 5, 110, 90, 20 });
|
||||
textbox->on_return_pressed = [window] (GTextBox& textbox) {
|
||||
window->set_title(textbox.text());
|
||||
};
|
||||
|
||||
auto* other_textbox = new GTextBox(widget);
|
||||
other_textbox->set_relative_rect({ 5, 140, 90, 20 });
|
||||
|
||||
window->set_focused_widget(textbox);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue