Commit 4ca84a2
fix: enable clipboard paste (Ctrl+V) in text input components
The textinput component's paste functionality is asynchronous - when
Ctrl+V is pressed, it returns a Paste command that reads from clipboard
and returns an internal pasteMsg. This message needs to be forwarded
back to textinput.Update() to actually insert the text.
Previously, only tea.KeyMsg was routed to input components, so pasteMsg
was never delivered. Added a default case in App.Update() to forward
unhandled messages to active textinput-based components (ConnectionDialog
and SearchInput).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0dda792 commit 4ca84a2
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1384 | 1384 | | |
1385 | 1385 | | |
1386 | 1386 | | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1387 | 1401 | | |
1388 | 1402 | | |
1389 | 1403 | | |
| |||
0 commit comments