|
@ -367,14 +367,18 @@ int main(int argc, char** argv) { |
|
|
case AND_CTRL('g'): |
|
|
case AND_CTRL('g'): |
|
|
goto quit; |
|
|
goto quit; |
|
|
case KEY_UP: |
|
|
case KEY_UP: |
|
|
|
|
|
case AND_CTRL('k'): |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, -1, 0); |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, -1, 0); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case AND_CTRL('j'): |
|
|
case KEY_DOWN: |
|
|
case KEY_DOWN: |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 1, 0); |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 1, 0); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case AND_CTRL('h'): |
|
|
case KEY_LEFT: |
|
|
case KEY_LEFT: |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, -1); |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, -1); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case AND_CTRL('l'): |
|
|
case KEY_RIGHT: |
|
|
case KEY_RIGHT: |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, 1); |
|
|
tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, 1); |
|
|
break; |
|
|
break; |
|
|