mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
ThemeEditor: Disable focus for demo widgets
Pressing tab would focus on the demo widgets instead of switching between the combo box and color input field. Instead set the focus policy to NoFocus for all the widgets.
This commit is contained in:
parent
432a34a496
commit
205c8a12ed
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ private:
|
|||
m_statusbar->set_text("Status bar");
|
||||
m_editor = add<GUI::TextEditor>();
|
||||
m_editor->set_text("Text editor\nwith multiple\nlines.");
|
||||
|
||||
for_each_child_widget([](auto& child) {
|
||||
child.set_focus_policy(GUI::FocusPolicy::NoFocus);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
||||
virtual void resize_event(GUI::ResizeEvent&) override
|
||||
|
|
Loading…
Add table
Reference in a new issue