Bug 36580

Summary: Keydown event properties (keyCode and which) are both deprecated
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: Browser compatibilityAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22281
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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. ***