This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Commit e8135f2
Make ESC clear password field instead of canceling prompt
Change the behavior of the ESC key to clear the password input field
(similar to Ctrl-U) instead of immediately canceling the authentication
prompt. This provides better UX - users who accidentally start typing
their password can press ESC to clear it and try again, rather than
having the prompt close.
Users can still cancel the prompt by waiting for the timeout, and the
previous commit ensures timeout/cancellation won't count as a failed
login attempt.
Related to #114
Amp-Thread-ID: https://ampcode.com/threads/T-60336806-26ca-40b3-bb77-86a913f74a0c
Co-authored-by: Amp <amp@ampcode.com>1 parent 2273798 commit e8135f2
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | 1309 | | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1311 | 1317 | | |
1312 | 1318 | | |
1313 | 1319 | | |
| |||
0 commit comments