Lluks
October 5, 2020, 2:39pm
1
Hello,
I have an issus with “input.keyboard.on” (see code bellow), all keys are recognized, but arrow are not. I think it worked in the past with “ArrowLeft”, … (i use v3.24.1 now).
this.input.keyboard.on("keydown", this.handleKey, this);
handleKey(e){
console.log(e);
...
Do anyone have any idea of why it don’t work ?
Thank you !
Hi,
Your code seems to work on my codepen, but with handleKey not this.handleKey
Try with:
this.input.keyboard.on("keydown", (e)=> console.log(e.key), this);
Lluks
October 5, 2020, 3:39pm
3
Unfortunately, it doesn’t seem to work for me, are you in 3.24.1?
Yes, tested with 3.24.1
Try with your browser extensions disabled, some extensions like evernote can cause problems