mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +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
|
@ -150,7 +150,7 @@ void PolygonalSelectTool::on_second_paint(Layer const* layer, GUI::PaintEvent& e
|
|||
painter.draw_line(last_line_start, last_line_stop, Color::Black, 1);
|
||||
}
|
||||
|
||||
bool PolygonalSelectTool::on_keydown(GUI::KeyEvent const& key_event)
|
||||
bool PolygonalSelectTool::on_keydown(GUI::KeyEvent& key_event)
|
||||
{
|
||||
if (key_event.key() == KeyCode::Key_Escape) {
|
||||
if (m_selecting) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue