mirror of
https://github.com/aristocratos/btop.git
synced 2025-12-23 22:29:08 -05:00
Enable vim movement in help menu (#1242)
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
@@ -1564,10 +1564,10 @@ static int optionsMenu(const string& key) {
|
||||
else if (is_in(key, "escape", "q", "h", "backspace", "space", "enter", "mouse_click")) {
|
||||
return Closed;
|
||||
}
|
||||
else if (pages > 1 and is_in(key, "down", "page_down", "tab", "mouse_scroll_down")) {
|
||||
else if (pages > 1 and is_in(key, "down", "j", "page_down", "tab", "mouse_scroll_down")) {
|
||||
if (++page >= pages) page = 0;
|
||||
}
|
||||
else if (pages > 1 and is_in(key, "up", "page_up", "shift_tab", "mouse_scroll_up")) {
|
||||
else if (pages > 1 and is_in(key, "up", "k", "page_up", "shift_tab", "mouse_scroll_up")) {
|
||||
if (--page < 0) page = pages - 1;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user