You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyboardEvent.code is the modern replacement for the infamous Event.keyCode. Also, all our supported browsers do support the KeyboardEvent.key API now, which means that after upgrading a few tests, we could simplify the code around
Hello @tyrasd ,
I am working on this issue but I have a question that should I replace Event.keyCode with KeyboardEvent.code at every place in the iD code or just the keybinding.js file that you have pointed out ?
KeyboardEvent.code
is the modern replacement for the infamousEvent.keyCode
. Also, all our supported browsers do support theKeyboardEvent.key
API now, which means that after upgrading a few tests, we could simplify the code aroundiD/modules/util/keybinding.js
Line 56 in ad67f81
See also #3572, #4618 and #8905 (comment)
The text was updated successfully, but these errors were encountered: