Merge pull request #70 from jestin/master

Add vim keys as alternative to arrow key navigation
pull/74/head
Christian Paul 2019-07-11 22:37:48 +02:00 zatwierdzone przez GitHub
commit 95ad703199
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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':