From 33e59b1b318ea911d9a63cd78c6bc5eee0bb4109 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 2 Jun 2025 06:14:39 -0500 Subject: interpret ^H as backspace --- tui/text_input.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tui/text_input.go') 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 = "" -- cgit v1.2.3