Fix alt+bspace since alt+bspace is equal to alt+ctrl+h.

pull/2771/head
Haosdent Huang 2 years ago
parent a06671b47f
commit 1ac69fa4b0

@ -517,6 +517,7 @@ func parseKeyChords(str string, message string) map[tui.Event]string {
case "alt-space":
chords[tui.AltKey(' ')] = key
case "alt-bs", "alt-bspace":
chords[tui.CtrlAltKey('h')] = key
add(tui.AltBS)
case "alt-up":
add(tui.AltUp)

@ -394,6 +394,8 @@ func defaultKeymap() map[tui.Event][]*action {
addEvent(tui.AltKey('d'), actKillWord)
add(tui.AltBS, actBackwardKillWord)
addEvent(tui.CtrlAltKey('h'), actBackwardKillWord)
add(tui.Up, actUp)
add(tui.Down, actDown)
add(tui.Left, actBackwardChar)

Loading…
Cancel
Save