1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:25:08 +00:00

GButton: Allow triggering a "click" by pressing Return when focused.

This commit is contained in:
Andreas Kling 2019-05-15 04:25:53 +02:00
parent ad731cc08f
commit 65e56eb72b
2 changed files with 9 additions and 0 deletions

View file

@ -49,6 +49,7 @@ protected:
virtual void mousemove_event(GMouseEvent&) override;
virtual void enter_event(CEvent&) override;
virtual void leave_event(CEvent&) override;
virtual void keydown_event(GKeyEvent&) override;
private:
String m_caption;