Explorar el Código

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 :^)
Mustafa Quraish hace 3 años
padre
commit
672c4cdbc2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Applications/PixelPaint/MainWidget.cpp

+ 1 - 1
Userland/Applications/PixelPaint/MainWidget.cpp

@@ -680,7 +680,7 @@ void MainWidget::initialize_menubar(GUI::Window& window)
             editor->did_complete_action();
             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();
         auto* editor = current_image_editor();
         if (!editor)
         if (!editor)
             return;
             return;