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

@ -105,20 +105,6 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
} else {
reaction |= HTOP_KEEP_FOLLOWING;
}
switch (ch) {
case KEY_LEFT:
case KEY_CTRLB:
if (super->scrollH > 0) {
super->scrollH -= CRT_scrollHAmount;
super->needsRedraw = true;
}
return HANDLED;
case KEY_RIGHT:
case KEY_CTRLF:
super->scrollH += CRT_scrollHAmount;
super->needsRedraw = true;
return HANDLED;
}
}
if (reaction & HTOP_REDRAW_BAR) {