diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-09 20:12:23 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-09 20:12:23 +0100 |
commit | 08e96c97f7524190c40a1c5482076874f394a6a7 (patch) | |
tree | 93df09c80f05b884dd969c938a8f7665c9e23ef6 /plugingui/knob.h | |
parent | 221f7216d1b6fda90f1aba36b2509aa62e158bee (diff) |
Make knob controllable using the arrow keys.
Diffstat (limited to 'plugingui/knob.h')
-rw-r--r-- | plugingui/knob.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/knob.h b/plugingui/knob.h index a78361b..515d872 100644 --- a/plugingui/knob.h +++ b/plugingui/knob.h @@ -36,6 +36,7 @@ public: Knob(Widget *parent); bool catchMouse() { return true; } + bool isFocusable() { return true; } void setValue(float value); float value(); @@ -49,6 +50,7 @@ public: virtual void buttonEvent(ButtonEvent *e); virtual void mouseMoveEvent(MouseMoveEvent *e); virtual void scrollEvent(ScrollEvent *e); + virtual void keyEvent(KeyEvent *e); private: typedef enum { |