1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

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
parent 3dccafb2a0
commit 672c4cdbc2

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;