mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Help: Set tree view as focused widget
This allows you to use the start using the keys to navigate the menu immediately, instead of having to click on the tree view first.
This commit is contained in:
parent
a850a89c1b
commit
6697513d30
Notes:
sideshowbarker
2024-07-19 10:00:06 +09:00
Author: https://github.com/shannonbooth
Commit: 6697513d30
Pull-request: https://github.com/SerenityOS/serenity/pull/1091
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ int main(int argc, char* argv[])
|
|||
app.set_menubar(move(menubar));
|
||||
|
||||
window->set_main_widget(widget);
|
||||
window->set_focused_widget(tree_view);
|
||||
window->show();
|
||||
|
||||
window->set_icon(load_png("/res/icons/16x16/book.png"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue