(id: string, def: KeybindConfig | undefined)
| 259 | ) |
| 260 | |
| 261 | const bind = (id: string, def: KeybindConfig | undefined) => { |
| 262 | const custom = settings.keybinds.get(actionId(id)) |
| 263 | const config = custom ?? def |
| 264 | if (!config || config === "none") return |
| 265 | return config |
| 266 | } |
| 267 | |
| 268 | const registered = createMemo(() => { |
| 269 | const seen = new Set<string>() |
no test coverage detected