mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Added Ctrl+A and Ctrl+E to go to beginning and end of line.
(Also, '^' and '$') Closes #508.
This commit is contained in:
14
MainPanel.c
14
MainPanel.c
@ -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) {
|
||||
|
Reference in New Issue
Block a user