lowercase

This commit is contained in:
Evert Prants 2022-04-09 18:09:11 +03:00
parent c198306717
commit 281f8545f8
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -54,11 +54,11 @@ export class Player extends PonyEntity {
super.initialize();
window.addEventListener('keydown', (e) => {
this.keydownMap[e.key] = true;
this.keydownMap[e.key.toLowerCase()] = true;
});
window.addEventListener('keyup', (e) => {
this.keydownMap[e.key] = false;
this.keydownMap[e.key.toLowerCase()] = false;
});
}