MCPcopy
hub / github.com/codeaashu/claude-code / useOptionalKeybindingContext

Function useOptionalKeybindingContext

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

Source from the content-addressed store, hash-verified

194 * Useful for components that may render before provider is available.
195 */
196export function useOptionalKeybindingContext() {
197 return useContext(KeybindingContext);
198}
199
200/**
201 * Hook to register a keybinding context as active while the component is mounted.

Callers 8

useShortcutDisplayFunction · 0.85
useKeybindingFunction · 0.85
useKeybindingsFunction · 0.85
PromptInputFunction · 0.85
useTypeaheadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected