pub enum InputAction {
}Expand description
Actions that ChatEditor can signal to the app layer. Mirrors pi’s CustomEditor approach: the editor handles its own text keys and returns an action for app-level keybindings.
Variants§
Handled
Key was consumed by the editor (text editing, navigation, etc.)
Escape
Escape pressed (app should abort streaming or close autocomplete)
Clear
Ctrl+C pressed (app should clear editor, or double-press to exit)
Exit
Ctrl+D pressed while editor is empty (app should quit)
ThinkingCycle
Shift+Tab pressed (app should cycle thinking level)
ModelSelector
Ctrl+L pressed (app should open model selector)
ModelCycleForward
Ctrl+P pressed (app should cycle to next model)
ModelCycleBackward
Shift+Ctrl+P pressed (app should cycle to previous model)
ToggleThinking
Ctrl+T pressed (app should toggle thinking visibility)
ToolsExpand
Ctrl+O pressed (app should toggle all tool output expansion)
EditorExternal
Ctrl+G pressed (app should open external editor)
Help
F1 pressed (app should show help overlay)
Submit(String)
Enter pressed with text (app should submit the message)
FollowUp(String)
Alt+Enter pressed (app should queue follow-up message)
Dequeue
Alt+Up pressed (app should restore queued message back to editor)
CompactToggle
Ctrl+Shift+C pressed (app should toggle auto-compact)