mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-26 14:56:30 +00:00
Allow binding CTRL-G and CTRL-Q
This commit is contained in:
parent
8677dbded1
commit
45bd323cab
@ -476,8 +476,12 @@ func GetChar() Event {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
switch _buf[0] {
|
switch _buf[0] {
|
||||||
case CtrlC, CtrlG, CtrlQ:
|
case CtrlC:
|
||||||
return Event{CtrlC, 0, nil}
|
return Event{CtrlC, 0, nil}
|
||||||
|
case CtrlG:
|
||||||
|
return Event{CtrlG, 0, nil}
|
||||||
|
case CtrlQ:
|
||||||
|
return Event{CtrlQ, 0, nil}
|
||||||
case 127:
|
case 127:
|
||||||
return Event{CtrlH, 0, nil}
|
return Event{CtrlH, 0, nil}
|
||||||
case ESC:
|
case ESC:
|
||||||
|
Loading…
Reference in New Issue
Block a user