summaryrefslogtreecommitdiff
path: root/plugingui/guievent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 14:54:27 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 14:54:27 +0100
commit6a1d23cf994844a39e5a1860c97276780903fb34 (patch)
tree77dd2d78ae38e3558f5f0ffde59ceab3b554f7b0 /plugingui/guievent.h
parentb3541d31093fe9f4ccd77303b6b375acb3127ac6 (diff)
Implement somewhat functional arrow-key navigation in listbox widget.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r--plugingui/guievent.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugingui/guievent.h b/plugingui/guievent.h
index db0328c..df2db26 100644
--- a/plugingui/guievent.h
+++ b/plugingui/guievent.h
@@ -108,12 +108,14 @@ public:
enum {
KEY_UNKNOWN =-1,
- KEY_LEFT = 1,// if(e->keycode == 113) { // left key
- KEY_RIGHT = 2,//} else if(e->keycode == 114) { // right key
- KEY_DELETE = 3,//} else if(e->keycode == 119) { // delete
- KEY_BACKSPACE = 4,//} else if(e->keycode == 22) { // backspace
- KEY_HOME = 5,
- KEY_END = 6,
+ KEY_LEFT = 1,
+ KEY_RIGHT = 2,
+ KEY_UP = 3,
+ KEY_DOWN = 4,
+ KEY_DELETE = 5,
+ KEY_BACKSPACE = 6,
+ KEY_HOME = 7,
+ KEY_END = 8,
KEY_CHARACTER = 0xffff // character data is stored in 'text'
};
};