mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +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
|
@ -14,6 +14,7 @@ public:
|
|||
virtual void on_contextmenu(GContextMenuEvent&) {}
|
||||
virtual void on_second_paint(GPaintEvent&) {}
|
||||
virtual void on_keydown(GKeyEvent&) {}
|
||||
virtual void on_keyup(GKeyEvent&) {}
|
||||
|
||||
void clear() { m_widget = nullptr; }
|
||||
void setup(PaintableWidget& widget) { m_widget = widget.make_weak_ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue