mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 23:53:08 +01:00
Merge pull request #70 from jestin/master
Add vim keys as alternative to arrow key navigation
This commit is contained in:
commit
95ad703199
@ -208,15 +208,19 @@ class Mapscii {
|
|||||||
this.zoomBy(-config.zoomStep);
|
this.zoomBy(-config.zoomStep);
|
||||||
break;
|
break;
|
||||||
case 'left':
|
case 'left':
|
||||||
|
case 'h':
|
||||||
this.moveBy(0, -8/Math.pow(2, this.zoom));
|
this.moveBy(0, -8/Math.pow(2, this.zoom));
|
||||||
break;
|
break;
|
||||||
case 'right':
|
case 'right':
|
||||||
|
case 'l':
|
||||||
this.moveBy(0, 8/Math.pow(2, this.zoom));
|
this.moveBy(0, 8/Math.pow(2, this.zoom));
|
||||||
break;
|
break;
|
||||||
case 'up':
|
case 'up':
|
||||||
|
case 'k':
|
||||||
this.moveBy(6/Math.pow(2, this.zoom), 0);
|
this.moveBy(6/Math.pow(2, this.zoom), 0);
|
||||||
break;
|
break;
|
||||||
case 'down':
|
case 'down':
|
||||||
|
case 'j':
|
||||||
this.moveBy(-6/Math.pow(2, this.zoom), 0);
|
this.moveBy(-6/Math.pow(2, this.zoom), 0);
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
|
Loading…
Reference in New Issue
Block a user