Bug 36580 - Keydown event properties (keyCode and which) are both deprecated
Summary: Keydown event properties (keyCode and which) are both deprecated
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Browser compatibility (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
: 22281 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-11 14:42 UTC by Emily Lamancusa (emlam)
Modified: 2024-04-11 17:09 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emily Lamancusa (emlam) 2024-04-11 14:42:44 UTC
According to MDN, keyCode (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode) and which (https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which) are both deprecated, though it doesn't look like any browsers have dropped support for them yet.

We should look into adding a more current option to ensure future support. KeyBoardEvent.key maybe? https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key I defer to the folks who know more about front-end web design than me though. :)

These come up at least in shortcut.js...not sure where else they may be used.
Comment 1 Owen Leonard 2024-04-11 17:09:13 UTC
*** Bug 22281 has been marked as a duplicate of this bug. ***