mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 15:43:08 +01:00
Add vim keys as alternative to arrow key navigation
This commit is contained in:
parent
9b5769a2ec
commit
fccacad3a2
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user