FE guidelines for KeyboardEvent property use

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

https://www.w3.org/TR/uievents/#events-keyboardevents

https://caniuse.com/#search=KeyboardEvent

We seem to mostly use the now deprecated keyCode property, we should document the correct usage of key and code and any known caveats.

eslint-plugin-unicorn has a bounty on a rule for this too so we can use that when its available. https://github.com/sindresorhus/eslint-plugin-unicorn/issues/118

Edited Sep 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading