Skip to content
Myr

Add key name "bspace" for --bind (bspace != ctrl-h)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 45bd323 · Browse files · 3 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−1 removed

  • other:+5 added−1 removed

3 files+5 added−1 removed

modified:src/curses/curses.go+2 added-1 removed
49 unmodified lines
50 Invalid51 Mouse5253 BTab54 BSpace5556 Del57 PgUp58 PgDn
424 unmodified lines
483 return Event{CtrlG, 0, nil}484 case CtrlQ:485 return Event{CtrlQ, 0, nil}486 case 127:486 return Event{CtrlH, 0, nil}487 return Event{BSpace, 0, nil}488 case ESC:489 return escSequence(&sz)490 }491
55 unmodified lines
modified:src/options.go+2 added
291 unmodified lines
292 case "enter", "return":293 chord = curses.CtrlM294 case "space":295 chord = curses.AltZ + int(' ')296 case "bspace":297 chord = curses.BSpace298 case "tab":299 chord = curses.Tab300 case "btab":301 chord = curses.BTab
452 unmodified lines
modified:src/terminal.go+1 added
135 unmodified lines
136 keymap[C.CtrlD] = actDeleteChar137 keymap[C.CtrlE] = actEndOfLine138 keymap[C.CtrlF] = actForwardChar139 keymap[C.CtrlH] = actBackwardDeleteChar140 keymap[C.BSpace] = actBackwardDeleteChar141 keymap[C.Tab] = actToggleDown142 keymap[C.BTab] = actToggleUp143 keymap[C.CtrlJ] = actDown144 keymap[C.CtrlK] = actUp
820 unmodified lines