~eliasnaur/gio-patches

[PATCH gio 0/1] [PATCH gio v2] ui/widget: password-mode for editor (io.Reader)

~funvit
Details
Message ID
<158056732255.24762.10165790478476356141-0@git.sr.ht>
DKIM signature
missing
Download raw message
Ability to hide actual editor text, replacing it with specified rune on
input/drawing (for issue #80).

Set editor Mask field to any rune
(MaskAsterisk, MaskDot or custom) to enable input masking.

Works only
with SingleLine=true. Expect panic if not...

Caret moving is ok
(fixed).

Small breaking change: use e.rr.move() instead of e.rr.caret
in editor.go (due optimization of caret pos recalculation).

Signed-
off-by: Vitaliy Funtikov <funvit@gmail.com>

Vitaliy Funtikov (1):
  feat: Ability to hide actual editor text, replacing it with specified
    rune on input/drawing.

 widget/buffer.go | 17 ++++++++++++++--
 widget/editor.go | 52 +++++++++++++++++++++++++++++++++++-------------
 widget/mask.go   | 43 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 16 deletions(-)
 create mode 100644 widget/mask.go

-- 
2.24.1