From 672c4cdbc23482f643b1321fd923e77dba53ddc7 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Sun, 12 Sep 2021 21:00:18 -0400 Subject: [PATCH] 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 :^) --- Userland/Applications/PixelPaint/MainWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;