mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
PaintBrush: Tools can receive KeyUp events
This commit is contained in:
parent
7301db4f9a
commit
b185c7f58a
3 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,13 @@ void PaintableWidget::keydown_event(GKeyEvent& event)
|
|||
GWidget::keydown_event(event);
|
||||
}
|
||||
|
||||
void PaintableWidget::keyup_event(GKeyEvent& event)
|
||||
{
|
||||
if (m_tool)
|
||||
m_tool->on_keyup(event);
|
||||
GWidget::keyup_event(event);
|
||||
}
|
||||
|
||||
void PaintableWidget::set_primary_color(Color color)
|
||||
{
|
||||
if (m_primary_color == color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue