csweichel / werft

Just Kubernetes Native CI
https://werft.dev
MIT License
190 stars 39 forks source link

[webui] Use `.key` instead of `.keyCode` / `.charCode` for keyboard events #167

Closed filiptronicek closed 2 years ago

filiptronicek commented 2 years ago

This change removed deprecated ways of looking up a key on the keyboard and instead uses .key, which is both not deprecated and human-readable.

From MDN [1]:

Warning: Do not use this property, as it is deprecated. Instead, get the Unicode value of the character using the key property.