(parsedKey: ParsedKey)
| 18 | readonly fn: boolean |
| 19 | |
| 20 | constructor(parsedKey: ParsedKey) { |
| 21 | super('keydown', { bubbles: true, cancelable: true }) |
| 22 | |
| 23 | this.key = keyFromParsed(parsedKey) |
| 24 | this.ctrl = parsedKey.ctrl |
| 25 | this.shift = parsedKey.shift |
| 26 | this.meta = parsedKey.meta || parsedKey.option |
| 27 | this.superKey = parsedKey.super |
| 28 | this.fn = parsedKey.fn |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | function keyFromParsed(parsed: ParsedKey): string { |
nothing calls this directly
no test coverage detected