mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +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:
parent
159f6cf0ac
commit
296b76095f
20 changed files with 20 additions and 20 deletions
|
@ -116,7 +116,7 @@ void EllipseTool::on_second_paint(Layer const* layer, GUI::PaintEvent& event)
|
|||
draw_using(painter, preview_start, preview_end, AK::max(m_thickness * m_editor->scale(), 1));
|
||||
}
|
||||
|
||||
bool EllipseTool::on_keydown(GUI::KeyEvent const& event)
|
||||
bool EllipseTool::on_keydown(GUI::KeyEvent& event)
|
||||
{
|
||||
if (event.key() == Key_Escape && m_drawing_button != GUI::MouseButton::None) {
|
||||
m_drawing_button = GUI::MouseButton::None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue