mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
Reference in a new issue