Skip to content
Snippets Groups Projects
Commit 45bd323c authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Allow binding CTRL-G and CTRL-Q

parent 8677dbde
No related branches found
No related tags found
No related merge requests found
......@@ -476,8 +476,12 @@ func GetChar() Event {
}()
switch _buf[0] {
case CtrlC, CtrlG, CtrlQ:
case CtrlC:
return Event{CtrlC, 0, nil}
case CtrlG:
return Event{CtrlG, 0, nil}
case CtrlQ:
return Event{CtrlQ, 0, nil}
case 127:
return Event{CtrlH, 0, nil}
case ESC:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment