Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

608 B
Raw Blame
export type TerminalKeyboardDismissHandle = { blur: () => void } | null | undefined

export type DismissTerminalKeyboardOptions = {
  clearPendingLiveInputFocus: () => void
  commandInput: TerminalKeyboardDismissHandle
  dismissKeyboard: () => void
  liveInput: TerminalKeyboardDismissHandle
}

export function dismissTerminalKeyboard(options: DismissTerminalKeyboardOptions): void {
  // Clear deferred live focus before dismissing or it can immediately reopen the iOS keyboard.
  options.clearPendingLiveInputFocus()
  options.liveInput?.blur()
  options.commandInput?.blur()
  options.dismissKeyboard()
}