curses: Add CTRL-N/CTRL-P for next/previous element
This commit is contained in:
parent
ed8528cf9c
commit
5677863e61
@ -45,6 +45,8 @@ enum {
|
||||
KEY_TOGGLE_DETAILS = 'd',
|
||||
KEY_TOGGLE_INFO = 'i',
|
||||
KEY_COLLECT_HISTORY = 'h',
|
||||
KEY_CTRL_N = 14,
|
||||
KEY_CTRL_P = 16,
|
||||
};
|
||||
|
||||
#define DETAILS_COLS 40
|
||||
@ -1186,10 +1188,12 @@ static int handle_input(int ch)
|
||||
return 1;
|
||||
|
||||
case KEY_DOWN:
|
||||
case KEY_CTRL_N:
|
||||
element_select_next();
|
||||
return 1;
|
||||
|
||||
case KEY_UP:
|
||||
case KEY_CTRL_P:
|
||||
element_select_prev();
|
||||
return 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user