Menu
Sites
Language
Bug: Simulator remote’s KeyboardEvent missing key property

 

When pressing buttons on the simulator's remote, the KeyboardEvent is missing the key and code properties. These are implemented since Chrome 51 and 48 respectivelty. Consequently any modern code in event listeners depending on these proprties instead of the deprecated `keyCode` will not react to `keydown` events.

Unlike the simulator, the emulator's remote does populate these properties, as well as the deprecated keyCode.

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

Edited on 19 12, 2024

Responses

19 Replies
 Davis

Hello

 wward

Hello

 Baker

Hello

abrafo kai

hello

Tiffany Willis

I think you get the answer on Google.

 martin

very helpful info

 Perry

Hello

hadom dom

hello 

 Mitchell

Hello

 Gray

Hello

hegay hegay

hello

cain velasquez

thnx for info

 Carter

Hello

 carter

thnx

 smith

great

 lily

########################

 tonyigy

???????????????????????

 dudly

??????????????????????????

Stella Henderson

Thanks for more information