( input: string, key: Key, binding: ParsedBinding, )
| 109 | * For single-keystroke bindings only (Phase 1). |
| 110 | */ |
| 111 | export function matchesBinding( |
| 112 | input: string, |
| 113 | key: Key, |
| 114 | binding: ParsedBinding, |
| 115 | ): boolean { |
| 116 | if (binding.chord.length !== 1) return false |
| 117 | const keystroke = binding.chord[0] |
| 118 | if (!keystroke) return false |
| 119 | return matchesKeystroke(input, key, keystroke) |
| 120 | } |
| 121 |
no test coverage detected