LaunchMenu / node-global-key-listener

A package to listen to global key events
MIT License
94 stars 11 forks source link

Fix event types (do not pretend we have all possibly key codes handled) #30

Closed futpib closed 2 years ago

futpib commented 2 years ago

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.