There is little chance we have all possible key code definitions hardcoded in src/ts/_data/*GlobalKeyLookup.ts files, and even if we had, operating systems can update to include new key codes.
This is why IGlobalKeyEvent.rawKey has to be optional, for some keys we can only supply the scanCode and nothing more.
There is little chance we have all possible key code definitions hardcoded in
src/ts/_data/*GlobalKeyLookup.ts
files, and even if we had, operating systems can update to include new key codes.This is why
IGlobalKeyEvent.rawKey
has to be optional, for some keys we can only supply thescanCode
and nothing more.