MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / focusNow

Function focusNow

cli/src/hooks/use-auth-state.ts:116–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 setInputFocused(true)
115
116 const focusNow = () => {
117 const handle = inputRef.current
118 if (handle && typeof handle.focus === 'function') {
119 handle.focus()
120 }
121 }
122
123 focusNow()
124 const timeoutId = setTimeout(focusNow, 0)

Callers 1

useAuthStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected