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
While it may prove impossible to smooth over all OS / keyboard layout differences in event.key, providing access to mapping hotkeys to an event.code may help in some situations (for example WASD navigation)
While it may prove impossible to smooth over all OS / keyboard layout differences in
event.key
, providing access to mapping hotkeys to anevent.code
may help in some situations (for example WASD navigation)VS Code allows this via wrapping the code in
[]
: for example[KeyA]
would match onevent.code === "KeyA"
.This allows for some flexibility to map shortcuts to physical locations on the keyboard (eg WASD navigation etc.)
The text was updated successfully, but these errors were encountered: