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 :^)
This commit is contained in:
Mustafa Quraish 2021-09-12 21:00:18 -04:00 committed by Andreas Kling
commit 672c4cdbc2
Notes: sideshowbarker 2024-07-18 04:03:05 +09:00

View file

@ -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;