(value: InputValue)
| 181 | |
| 182 | // Handle input changes with special mode entry detection |
| 183 | const handleInputChange = (value: InputValue) => { |
| 184 | // Detect entering bash mode: user typed exactly '!' when in default mode |
| 185 | if (inputMode === 'default' && value.text === '!') { |
| 186 | // Enter bash mode and clear input |
| 187 | setInputMode('bash') |
| 188 | setInputValue({ |
| 189 | text: '', |
| 190 | cursorPosition: 0, |
| 191 | lastEditDueToNav: value.lastEditDueToNav, |
| 192 | }) |
| 193 | return |
| 194 | } |
| 195 | |
| 196 | // Normal input handling |
| 197 | setInputValue(value) |
| 198 | } |
| 199 | |
| 200 | const handleFormSubmit = ( |
| 201 | answers: { question: string; answer: string }[], |
nothing calls this directly
no test coverage detected