Added Ctrl+A and Ctrl+E to go to beginning and end of line.

(Also, '^' and '$')
Closes #508.
This commit is contained in:
Hisham
2016-06-15 12:45:23 -03:00
parent 1a13b4d0f4
commit 0128d222b9
5 changed files with 30 additions and 31 deletions

View File

@ -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;