(key: string)
| 1102 | } |
| 1103 | |
| 1104 | function isModifierKey(key: string): boolean { |
| 1105 | return ( |
| 1106 | key === "Shift" || key === "Control" || key === "Alt" || key === "Meta" |
| 1107 | ); |
| 1108 | } |
| 1109 | |
| 1110 | function physicalKeyFromCode(code: string): string | null { |
| 1111 | if (/^Key[A-Z]$/.test(code)) return code.slice(3); |
no outgoing calls
no test coverage detected