(key: string)
| 42 | } |
| 43 | |
| 44 | function normalizeKey(key: string) { |
| 45 | if (key === ",") return "comma" |
| 46 | if (key === "+") return "plus" |
| 47 | if (key === " ") return "space" |
| 48 | return key.toLowerCase() |
| 49 | } |
| 50 | |
| 51 | function signature(key: string, ctrl: boolean, meta: boolean, shift: boolean, alt: boolean) { |
| 52 | const mask = (ctrl ? 1 : 0) | (meta ? 2 : 0) | (shift ? 4 : 0) | (alt ? 8 : 0) |
no outgoing calls
no test coverage detected