From 427d488d7e556852a2565664657dac0c4f6c9088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Oppeb=C3=B8en?= Date: Sat, 26 Nov 2022 22:38:21 +0100 Subject: [PATCH] PixelPaint: Record action when erasing a selection to allow undo --- Userland/Applications/PixelPaint/ImageEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 3e56f97bc9..f9c2f2cbed 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -417,6 +417,7 @@ void ImageEditor::keydown_event(GUI::KeyEvent& event) { if (event.key() == Key_Delete && !m_image->selection().is_empty() && active_layer()) { active_layer()->erase_selection(m_image->selection()); + did_complete_action("Erase Selection"sv); return; }