(data: string, keybinding: Keybinding)
| 192 | } |
| 193 | |
| 194 | matches(data: string, keybinding: Keybinding): boolean { |
| 195 | const keys = this.keysById.get(keybinding) ?? []; |
| 196 | for (const key of keys) { |
| 197 | if (matchesKey(data, key)) return true; |
| 198 | } |
| 199 | return false; |
| 200 | } |
| 201 | |
| 202 | getKeys(keybinding: Keybinding): KeyId[] { |
| 203 | return [...(this.keysById.get(keybinding) ?? [])]; |
no test coverage detected