mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibGUI: Make toolbar buttons non-focusable by default
Toolbar buttons are meant for quick mouse access to common actions, while quick keyboard access is normally achieved via keyboard shortcuts and underlined menu items. This makes interfaces with many toolbar buttons (e.g GUI::FilePicker) a lot nicer to navigate via keyboard.
This commit is contained in:
parent
fe98cb2c4b
commit
25475f7003
Notes:
sideshowbarker
2024-07-18 02:04:57 +09:00
Author: https://github.com/awesomekling
Commit: 25475f7003
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ private:
|
|||
set_exclusive(true);
|
||||
set_action(action);
|
||||
set_tooltip(tooltip(action));
|
||||
set_focus_policy(FocusPolicy::TabFocus);
|
||||
set_focus_policy(FocusPolicy::NoFocus);
|
||||
if (action.icon())
|
||||
set_icon(action.icon());
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue