summaryrefslogtreecommitdiff
path: root/tui/text_input.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui/text_input.go')
-rw-r--r--tui/text_input.go3
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