Skip to content

Commit

Permalink
Added more vim key-bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-berling committed Oct 29, 2017
1 parent 3c43e70 commit 138206f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ int Menu::handleChoice()
c = wgetch(menuwin);
switch(c)
{
case 'j':
case KEY_DOWN:
menu_driver(menu, REQ_DOWN_ITEM);
if(choice < nlines - 1)
choice++;
break;
case 'k':
case KEY_UP:
menu_driver(menu, REQ_UP_ITEM);
if(choice > 0)
Expand Down

0 comments on commit 138206f

Please sign in to comment.