Skip to content
Myr

Allow binding CTRL-G and CTRL-Q

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 8677dbd · Browse files · 1 file+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

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/curses/curses.go+5 added-1 removed
474 unmodified lines
475 _buf = _buf[sz:]476 }()477478 switch _buf[0] {479 case CtrlC, CtrlG, CtrlQ:479 case CtrlC:480 return Event{CtrlC, 0, nil}481 case CtrlG:482 return Event{CtrlG, 0, nil}483 case CtrlQ:484 return Event{CtrlQ, 0, nil}485 case 127:486 return Event{CtrlH, 0, nil}487 case ESC:488 return escSequence(&sz)
57 unmodified lines