__top__ - Keybinding

remap(id: string, newKeys: string[]) const binding = this.bindings.get(id); if (binding) binding.userKeys = newKeys;

on(id: string, callback: () => void) if (!this.listeners.has(id)) this.listeners.set(id, new Set()); this.listeners.get(id)!.add(callback); keybinding

function Editor() useKeybinding("save", () => console.log("Saved via Ctrl+S"); ); return <textarea />; remap(id: string, newKeys: string[]) const binding = this