4 ms·
The author spends a lot of time explaining the APIs that have been deprecated but doesn’t say which one is the correct one to use now...
by vxNsr 6y ago
The author spends a lot of time explaining the APIs that have been deprecated but doesn’t say which one is the correct one to use now...
- city41 6y agoThey do briefly mention it, `key` https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...
- tkainrad 6y agoUnfortunately, it's not that simple. For different apps, different approaches might be best. That's why there is a section on possible solutions. Regarding events, attributes, and deprecation: keydown (event), code (attribute), and key (attribute) are not deprecated.