Update Mapscii.js: Add '+' and '-' as zoom keys

This commit is contained in:
Miguel Carvalho 2024-03-23 22:19:03 +00:00 committed by GitHub
parent 4fe9a60a0c
commit 4c56136b32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,9 +220,11 @@ class Mapscii {
process.exit(0); process.exit(0);
} }
break; break;
case '+':
case 'a': case 'a':
this.zoomBy(config.zoomStep); this.zoomBy(config.zoomStep);
break; break;
case '-':
case 'y': case 'y':
case 'z': case 'z':
this.zoomBy(-config.zoomStep); this.zoomBy(-config.zoomStep);