diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-31 02:05:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 02:05:35 +0100 |
commit | 34d458d111731e4cdd990ac92eef788d76f9fee1 (patch) | |
tree | 5216cca698afbc5ec5ced037466235af8579f691 /Applications | |
parent | 412a91d58f8396d76a6f56b4265c406d1bfd4331 (diff) | |
download | serenity-34d458d111731e4cdd990ac92eef788d76f9fee1.zip |
PixelPaint: Don't focus toolbox buttons on click
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/PixelPaint/ToolboxWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/PixelPaint/ToolboxWidget.cpp b/Applications/PixelPaint/ToolboxWidget.cpp index ee9b86024c..c746901887 100644 --- a/Applications/PixelPaint/ToolboxWidget.cpp +++ b/Applications/PixelPaint/ToolboxWidget.cpp @@ -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))); |