From 72f73ee56d8f10fd0e02470a51b2f9736de7d2f2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 15 Nov 2025 10:43:33 +0900 Subject: [PATCH] Make ctrl-alt-h a synonym of ctrl-alt-backspace on non-Windows environment --- src/options.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/options.go b/src/options.go index 02eef8b9..5414f661 100644 --- a/src/options.go +++ b/src/options.go @@ -1217,7 +1217,11 @@ func parseKeyChords(str string, message string) (map[tui.Event]string, []tui.Eve default: runes := []rune(key) if len(key) == 10 && strings.HasPrefix(lkey, "ctrl-alt-") && isAlphabet(lkey[9]) { - evt := tui.CtrlAltKey(rune(key[9])) + r := rune(key[9]) + evt := tui.CtrlAltKey(r) + if r == 'h' && !util.IsWindows() { + evt = tui.CtrlAltBackspace.AsEvent() + } chords[evt] = key list = append(list, evt) } else if len(key) == 6 && strings.HasPrefix(lkey, "ctrl-") && isAlphabet(lkey[5]) {