lowercase
This commit is contained in:
parent
c198306717
commit
281f8545f8
@ -54,11 +54,11 @@ export class Player extends PonyEntity {
|
|||||||
super.initialize();
|
super.initialize();
|
||||||
|
|
||||||
window.addEventListener('keydown', (e) => {
|
window.addEventListener('keydown', (e) => {
|
||||||
this.keydownMap[e.key] = true;
|
this.keydownMap[e.key.toLowerCase()] = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('keyup', (e) => {
|
window.addEventListener('keyup', (e) => {
|
||||||
this.keydownMap[e.key] = false;
|
this.keydownMap[e.key.toLowerCase()] = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user