Skip to content
Permalink
Browse files

Add vim keys as alternative to arrow key navigation

  • Loading branch information...
jestin committed Jul 8, 2019
1 parent 9b5769a commit fccacad3a24c5fc995eae2917f1d2cca91ecbb8d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Mapscii.js
@@ -208,15 +208,19 @@ class Mapscii {
this.zoomBy(-config.zoomStep);
break;
case 'left':
case 'h':
this.moveBy(0, -8/Math.pow(2, this.zoom));
break;
case 'right':
case 'l':
this.moveBy(0, 8/Math.pow(2, this.zoom));
break;
case 'up':
case 'k':
this.moveBy(6/Math.pow(2, this.zoom), 0);
break;
case 'down':
case 'j':
this.moveBy(-6/Math.pow(2, this.zoom), 0);
break;
case 'c':

0 comments on commit fccacad

Please sign in to comment.
You can’t perform that action at this time.