mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
PixelPaint: Record action when erasing a selection to allow undo
This commit is contained in:
parent
01653bd94b
commit
427d488d7e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue