diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-04 12:22:07 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 16:02:18 -0500 |
| commit | 8352123b5c2c479cea31c991eeebf7868559db29 (patch) | |
| tree | b0b7ba6ee1abc673fb66120970bc5b41a039ef78 /tui/text_input.go | |
| parent | d2a8e6d8fab0e391c0e506c81b999e5f8c41c4b8 (diff) | |
support for tab character
Diffstat (limited to 'tui/text_input.go')
| -rw-r--r-- | tui/text_input.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tui/text_input.go b/tui/text_input.go index c861f96..b5d2748 100644 --- a/tui/text_input.go +++ b/tui/text_input.go @@ -180,6 +180,9 @@ func (t *TextInput) Update(ev Event) (usedKeybind bool) { if ev.TextInput != 0 { t.Write(string(ev.TextInput)) } + if ev.Key == keys.Tab { + t.Write("\t") + } selection := ev.Key & keys.Shift != 0 word := ev.Key & keys.Ctrl != 0 |
