m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-12-07 09:44:07 -05:00

Make ctrl-alt-h a synonym of ctrl-alt-backspace on non-Windows environment (#4589)

This commit is contained in:
Junegunn Choi
2025-11-16 16:33:53 +09:00
committed by GitHub
parent 53a8aeeb72
commit 2471edf3ff
2 changed files with 7 additions and 3 deletions

View File

@@ -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(lkey[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]) {