PixelPaint: Record action when erasing a selection to allow undo

This commit is contained in:
Andreas Oppebøen 2022-11-26 22:38:21 +01:00 committed by Sam Atkins
parent 01653bd94b
commit 427d488d7e

View file

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