mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
PixelPaint: Don't focus toolbox buttons on click
This commit is contained in:
parent
412a91d58f
commit
34d458d111
Notes:
sideshowbarker
2024-07-19 00:19:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/34d458d1117
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ void ToolboxWidget::setup_tools()
|
|||
auto add_tool = [&](const StringView& name, const StringView& icon_name, const GUI::Shortcut& shortcut, NonnullOwnPtr<Tool> tool) -> ToolButton& {
|
||||
m_tools.append(tool.ptr());
|
||||
auto& button = add<ToolButton>(*this, name, shortcut, move(tool));
|
||||
button.set_focus_policy(GUI::FocusPolicy::TabFocus);
|
||||
button.set_fixed_height(32);
|
||||
button.set_checkable(true);
|
||||
button.set_icon(Gfx::Bitmap::load_from_file(String::formatted("/res/icons/pixelpaint/{}.png", icon_name)));
|
||||
|
|
Loading…
Reference in a new issue