summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/Tool.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-10 22:40:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-10 22:40:58 +0100
commitc8637e0206f6162a67663a08646c4fc128d147ef (patch)
tree6d4cd53fcdd6803997d00b1d32b14bf66f2d90ac /DevTools/HackStudio/Tool.h
parent567769eb2feedd4b2ec7eb90b65b76b8f0d30bda (diff)
downloadserenity-c8637e0206f6162a67663a08646c4fc128d147ef.zip
HackStudio: Allow moving the selected widgets using the arrow keys
This is a nice complement to moving widgets with the mouse. :^)
Diffstat (limited to 'DevTools/HackStudio/Tool.h')
-rw-r--r--DevTools/HackStudio/Tool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/DevTools/HackStudio/Tool.h b/DevTools/HackStudio/Tool.h
index 75911209e1..6a9bb1c44a 100644
--- a/DevTools/HackStudio/Tool.h
+++ b/DevTools/HackStudio/Tool.h
@@ -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;