MCPcopy Create free account
hub / github.com/anus-dev/ANUS / useKeypressContext

Function useKeypressContext

packages/cli/src/ui/contexts/KeypressContext.tsx:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56);
57
58export function useKeypressContext() {
59 const context = useContext(KeypressContext);
60 if (!context) {
61 throw new Error(
62 'useKeypressContext must be used within a KeypressProvider',
63 );
64 }
65 return context;
66}
67
68export function KeypressProvider({
69 children,

Callers 2

useKeypressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected