Commit e5a755a
feat(tui/login): add ctrl+v password visibility toggle (#593)
Closes #593.
Typos in app-passwords are hard to spot under EchoPassword and the
workaround was to delete and retype. This wires ctrl+v (only while
the password input has focus) to flip between EchoPassword and
EchoNormal on inputs[inputPassword], matching the approach the issue
suggested.
The help line under the form already lists the other chord shortcuts
(enter / tab / esc), so the new chord is appended to that same line
and only while the password field is focused — keeps the hint
discoverable without cluttering the view when focus is elsewhere.
Go build, go vet, and go test ./tui all pass locally.1 parent c9da429 commit e5a755a
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
179 | 191 | | |
180 | 192 | | |
181 | 193 | | |
| |||
417 | 429 | | |
418 | 430 | | |
419 | 431 | | |
420 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
421 | 437 | | |
422 | 438 | | |
423 | 439 | | |
| |||
0 commit comments