1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

VisualBuilder: Add some keyboard navigation support.

Allow selecting widgets using the Tab key, and moving them around
using the arrow keys. :^)
This commit is contained in:
Andreas Kling 2019-04-16 23:01:37 +02:00
parent ac324f14b8
commit f7157520eb
2 changed files with 45 additions and 0 deletions

View file

@ -31,6 +31,7 @@ protected:
virtual void mousedown_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;
virtual void mouseup_event(GMouseEvent&) override;
virtual void keydown_event(GKeyEvent&) override;
private:
void grabber_mousedown_event(GMouseEvent&, VBWidget&, Direction grabber);