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:
parent
567769eb2f
commit
c8637e0206
Notes:
sideshowbarker
2024-07-19 11:16:36 +09:00
Author: https://github.com/awesomekling
Commit: c8637e0206
7 changed files with 47 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue