summaryrefslogtreecommitdiff
path: root/tui
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-02 06:14:39 -0500
committercitrons <citrons@mondecitronne.com>2025-06-02 06:14:39 -0500
commit33e59b1b318ea911d9a63cd78c6bc5eee0bb4109 (patch)
treef5a68760d3108b3b6f42f3bc6e92e63ca91fc71a /tui
parentbd5aa344ee5c53e04d15d9fc615d5698b5dbcfea (diff)
interpret ^H as backspace
Diffstat (limited to 'tui')
-rw-r--r--tui/text_input.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tui/text_input.go b/tui/text_input.go
index 63335aa..c861f96 100644
--- a/tui/text_input.go
+++ b/tui/text_input.go
@@ -200,6 +200,12 @@ func (t *TextInput) Update(ev Event) (usedKeybind bool) {
if ev.Key & (keys.Ctrl | keys.Alt) != 0 {
t.End(selection)
}
+ case 'h':
+ if ev.Key & keys.Ctrl == 0 {
+ break
+ }
+ word = false
+ fallthrough
case keys.Backspace:
if t.selection != "" {
t.selection = ""