Enable vim movement in help menu (#1242)

Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
Anton Melnikov
2025-09-10 17:49:55 +02:00
committed by GitHub
parent e51f5c202f
commit bdddfc46a2

View File

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