mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
PaintBrush: Allow canceling a line by pressing the Escape key
Sometimes you change your mind mid-line, and just want to get out of the situation. You can now do that :^)
This commit is contained in:
parent
4e6cd541c9
commit
b09ac26311
6 changed files with 21 additions and 1 deletions
|
@ -32,11 +32,13 @@ public:
|
|||
Function<void(Color)> on_secondary_color_change;
|
||||
|
||||
private:
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void second_paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void mouseup_event(GMouseEvent&) override;
|
||||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
|
||||
RefPtr<GraphicsBitmap> m_bitmap;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue