mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
The `event` type and keyword is reserved by the typescript generator, in the future we should throw an error from the generator if someone uses a reserved interface like that. This also splits and documents the InputEvent type way better so that TS users get strong type safety. Fixes electron/typescript-definitions#36
281 B
281 B
KeyboardInputEvent Object extends InputEvent
typeString - The type of the event, can bekeyDown,keyUporchar.keyCodeString - The character that will be sent as the keyboard event. Should only use the valid key codes in Accelerator.