summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-01-29 23:49:50 -0600
committercitrons <citrons@mondecitronne.com>2025-01-29 23:49:50 -0600
commit75e781cf2cc88f7a775f99998224c658550c198f (patch)
treeca45c2e18fb6d79c3617dfc0f92b8d0d9ac984b0
parentdcc8a3a4f93eb5b7dcc965e63ad2ea6057a8ee6b (diff)
interpret tab key as text
-rw-r--r--tui/event.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tui/event.go b/tui/event.go
index 4d0a535..997a8a4 100644
--- a/tui/event.go
+++ b/tui/event.go
@@ -62,6 +62,9 @@ func Events() <-chan Event {
}
ev.TextInput = r
}
+ if kev.Key == keys.Tab {
+ ev.TextInput = '\t'
+ }
switch kev.Key {
case keys.Mouse: