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

HackStudio: Allow moving the selected widgets using the arrow keys

This is a nice complement to moving widgets with the mouse. :^)
This commit is contained in:
Andreas Kling 2019-11-10 22:40:58 +01:00
parent 567769eb2f
commit c8637e0206
7 changed files with 47 additions and 0 deletions

View file

@ -19,6 +19,7 @@ private:
virtual void on_mousedown(GMouseEvent&) override;
virtual void on_mouseup(GMouseEvent&) override;
virtual void on_mousemove(GMouseEvent&) override;
virtual void on_keydown(GKeyEvent&) override;
Point m_drag_origin;
HashMap<GWidget*, Point> m_positions_before_drag;