MCPcopy Create free account
hub / github.com/freecodexyz/free-code / useKeybindingContext

Function useKeybindingContext

src/keybindings/KeybindingContext.tsx:184–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182}
183function _temp() {}
184export function useKeybindingContext() {
185 const ctx = useContext(KeybindingContext);
186 if (!ctx) {
187 throw new Error("useKeybindingContext must be used within KeybindingProvider");
188 }
189 return ctx;
190}
191
192/**
193 * Optional hook that returns undefined outside of KeybindingProvider.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected