summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Paul <info@jaller.de>2019-07-11 22:37:48 +0200
committerGitHub <noreply@github.com>2019-07-11 22:37:48 +0200
commit95ad703199c896b5d6c64122fbd9ceec73c29913 (patch)
treeb95ef1b0119a59c14504c18d1db81d7c483b5ea8
parent9b5769a2ecfad4207817d6e3185fc9ec342cc41b (diff)
parentfccacad3a24c5fc995eae2917f1d2cca91ecbb8d (diff)
Merge pull request #70 from jestin/master
Add vim keys as alternative to arrow key navigation
-rw-r--r--src/Mapscii.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mapscii.js b/src/Mapscii.js
index dcdc113..e02459b 100644
--- a/src/Mapscii.js
+++ b/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':