diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-10 14:31:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-10 14:58:48 +0200 |
commit | 9288e641798128bc705b0e2aa95c32ee58ef7e0e (patch) | |
tree | 5538f382e3ebd870ff9599d80113d88838c6ca86 /Userland/Applications/PixelPaint/main.cpp | |
parent | 4e56e9fa2af3649e36d2cfcd2fd9a6523223dda0 (diff) | |
download | serenity-9288e641798128bc705b0e2aa95c32ee58ef7e0e.zip |
PixelPaint: Add icon and keyboard shortcut for the "New Image" action
Diffstat (limited to 'Userland/Applications/PixelPaint/main.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index b39631bcae..dd68010e35 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -129,7 +129,7 @@ int main(int argc, char** argv) file_menu.add_action( GUI::Action::create( - "&New Image...", [&](auto&) { + "&New Image...", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [&](auto&) { auto dialog = PixelPaint::CreateNewImageDialog::construct(window); if (dialog->exec() == GUI::Dialog::ExecOK) { auto image = PixelPaint::Image::create_with_size(dialog->image_size()); |