1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

PixelPaint: Change tool keydown handle to non-const

This was changed to const in PR #15788 but presents problems for tools
that may need to forward this event to non-const event handlers.
This commit is contained in:
Timothy Slater 2022-11-16 17:31:31 -06:00 committed by Sam Atkins
parent 159f6cf0ac
commit 296b76095f
20 changed files with 20 additions and 20 deletions

View file

@ -37,7 +37,7 @@ static void set_flood_selection(Gfx::Bitmap& bitmap, Image& image, Gfx::IntPoint
image.selection().merge(selection_mask, merge_mode);
}
bool WandSelectTool::on_keydown(GUI::KeyEvent const& key_event)
bool WandSelectTool::on_keydown(GUI::KeyEvent& key_event)
{
if (key_event.key() == KeyCode::Key_Escape) {
m_editor->image().selection().clear();