From 8352123b5c2c479cea31c991eeebf7868559db29 Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 4 Jun 2025 12:22:07 -0500 Subject: support for tab character --- tui/text_input.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tui/text_input.go') 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 -- cgit v1.2.3