summaryrefslogtreecommitdiffstats
path: root/Panel.h
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-06-15 12:45:23 -0300
committerHisham <hisham@gobolinux.org>2016-06-15 12:45:23 -0300
commit0128d222b94adab6b258f417722f298013a33327 (patch)
tree83f7fff3eaa158b246af2a22ca55598d7cff6abb /Panel.h
parent1a13b4d0f4c02f13ec8a06f7bee9b1dc028434d5 (diff)
Added Ctrl+A and Ctrl+E to go to beginning and end of line.
(Also, '^' and '$') Closes #508.
Diffstat (limited to 'Panel.h')
-rw-r--r--Panel.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Panel.h b/Panel.h
index 67897706..5253fc2e 100644
--- a/Panel.h
+++ b/Panel.h
@@ -50,6 +50,7 @@ struct Panel_ {
Vector* items;
int selected;
int oldSelected;
+ int selectedLen;
void* eventHandlerState;
int scrollV;
short scrollH;
@@ -70,10 +71,7 @@ struct Panel_ {
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
-#define KEY_CTRLN 0016 /* control-n key */
-#define KEY_CTRLP 0020 /* control-p key */
-#define KEY_CTRLF 0006 /* control-f key */
-#define KEY_CTRLB 0002 /* control-b key */
+#define KEY_CTRL(l) ((l)-'A'+1)
extern PanelClass Panel_class;

© 2014-2024 Faster IT GmbH | imprint | privacy policy