CodeNomad/packages
Shantur Rathore 311b60bfb6
fix(ui): prevent accidental prompt clear from tab focus (#461)
## Summary
- Fixes #460 by changing the prompt control DOM order so tabbing from
the textarea reaches expand before clear.
- Clears prompt text through the textarea native delete path so
Cmd/Ctrl+Z can restore cleared text where the browser supports native
undo.
- Keeps the existing app-state fallback for environments where native
editing commands are unavailable or throw.

## Validation
- npm run typecheck --workspace @codenomad/ui
- Reviewed fallback behavior: `document.execCommand` is checked for
callability and wrapped in `try/catch`, so unavailable native editing
commands still fall back to app-state clearing.

## Manual QA Notes
- In a supported desktop/browser host: type text, click clear, then
press Cmd/Ctrl+Z and confirm text restores.
- Type text, press Tab and confirm focus moves to expand before clear;
pressing Tab again reaches clear.
2026-05-16 14:46:43 +01:00
..
cloudflare Increment version to 0.16.0 2026-05-14 10:40:21 +01:00
electron-app Reduce App package sizes (#453) 2026-05-15 19:13:13 +01:00
opencode-plugin Increment version to 0.16.0 2026-05-14 10:40:21 +01:00
server Increment version to 0.16.0 2026-05-14 10:40:21 +01:00
tauri-app Reduce App package sizes (#453) 2026-05-15 19:13:13 +01:00
ui fix(ui): prevent accidental prompt clear from tab focus (#461) 2026-05-16 14:46:43 +01:00