MCPcopy
hub / github.com/anomalyco/opencode / hasManagedTextareaFocus

Function hasManagedTextareaFocus

packages/tui/src/keymap.tsx:175–178  ·  view source on GitHub ↗
(renderer: CliRenderer)

Source from the content-addressed store, hash-verified

173] as const
174
175function hasManagedTextareaFocus(renderer: CliRenderer) {
176 const editor = renderer.currentFocusedEditor
177 return editor instanceof TextareaRenderable && !(editor instanceof InputRenderable)
178}
179
180function leaderDisplay(config: FormatConfig) {
181 const key = config.keybinds.get(LEADER_TOKEN)?.[0]?.key

Callers 1

registerOpencodeKeymapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected