1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09: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
Notes: sideshowbarker 2024-07-19 11:16:36 +09:00
7 changed files with 47 additions and 0 deletions

View file

@ -16,11 +16,14 @@ public:
int grid_size() const { return m_grid_size; }
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;
explicit FormWidget(FormEditorWidget& parent);