Hide the cursor when the password prompt is showing (#4878)

The cursor is a bit of a security concern, because it reveals the length
(and typing pattern) of the password.

Resolves #4877.
This commit is contained in:
Stefan Haller 2025-09-20 11:14:05 +02:00 committed by GitHub
commit cb2b5c3738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,7 +196,7 @@ func (self *ContextMgr) Activate(c types.Context, opts types.OnFocusOpts) {
v.Visible = true
self.gui.c.GocuiGui().Cursor = v.Editable
self.gui.c.GocuiGui().Cursor = v.Editable && v.Mask == 0
c.HandleFocus(opts)
}