diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2021-09-12 21:00:18 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-13 13:43:53 +0200 |
commit | 672c4cdbc23482f643b1321fd923e77dba53ddc7 (patch) | |
tree | 1d75f95e3def6867060c413f95e93088036d5b41 /Userland/Applications/PixelPaint | |
parent | 3dccafb2a038f78b6fe32cc154b0f0a6dc23261b (diff) | |
download | serenity-672c4cdbc23482f643b1321fd923e77dba53ddc7.zip |
PixelPaint: Add keyboard shortcut for Invert filter
Many of the popular photo editing applications have Ctrl+I as a
shortcut to invert the colors, so let's get on board :^)
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index 03caf3d195..6bf69d9442 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -680,7 +680,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) editor->did_complete_action(); } })); - color_filters_menu.add_action(GUI::Action::create("Invert", [&](auto&) { + color_filters_menu.add_action(GUI::Action::create("Invert", { Mod_Ctrl, Key_I }, [&](auto&) { auto* editor = current_image_editor(); if (!editor) return; |