mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
PixelPaint: Record action when erasing a selection to allow undo
This commit is contained in:
parent
01653bd94b
commit
427d488d7e
Notes:
sideshowbarker
2024-07-17 03:51:51 +09:00
Author: https://github.com/andreao
Commit: 427d488d7e
Pull-request: https://github.com/SerenityOS/serenity/pull/16214
Reviewed-by: https://github.com/AtkinsSJ ✅
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