Fix bug preventing 'ctrl-h' from being bound to an action
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled

Fix #4556
This commit is contained in:
Junegunn Choi
2025-10-15 12:16:09 +09:00
parent 8cdfb23df6
commit a0cabe021d
4 changed files with 68 additions and 73 deletions

View File

@@ -371,12 +371,10 @@ func (r *FullscreenRenderer) GetChar() Event {
}
case rune(tcell.KeyCtrlH):
switch {
case ctrl:
case ctrl, none, shift:
return keyfn('h')
case alt:
return Event{AltBackspace, 0, nil}
case none, shift:
return Event{Backspace, 0, nil}
}
}
case tcell.KeyCtrlI: