mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +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:
parent
567769eb2f
commit
c8637e0206
7 changed files with 47 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <AK/Noncopyable.h>
|
||||
|
||||
class FormEditorWidget;
|
||||
class GKeyEvent;
|
||||
class GMouseEvent;
|
||||
|
||||
class Tool {
|
||||
|
@ -14,6 +15,7 @@ public:
|
|||
virtual void on_mousedown(GMouseEvent&) = 0;
|
||||
virtual void on_mouseup(GMouseEvent&) = 0;
|
||||
virtual void on_mousemove(GMouseEvent&) = 0;
|
||||
virtual void on_keydown(GKeyEvent&) = 0;
|
||||
|
||||
virtual const char* class_name() const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue