(name: string, mods: Partial<Key> = {})
| 12 | |
| 13 | describe('keyMatchers', () => { |
| 14 | const createKey = (name: string, mods: Partial<Key> = {}): Key => ({ |
| 15 | name, |
| 16 | ctrl: false, |
| 17 | meta: false, |
| 18 | shift: false, |
| 19 | paste: false, |
| 20 | sequence: name, |
| 21 | ...mods, |
| 22 | }); |
| 23 | |
| 24 | // Original hard-coded logic (for comparison) |
| 25 | const originalMatchers: Record<Command, (key: Key) => boolean> = { |