m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -05:00

Allow alt-enter and alt-space for --bind (#571)

This commit is contained in:
Junegunn Choi
2016-05-13 00:36:13 +09:00
parent 66f86e1870
commit dd4be1da38
3 changed files with 15 additions and 3 deletions

View File

@@ -81,6 +81,8 @@ const (
F3
F4
AltEnter
AltSpace
AltBS
AltA
AltB
@@ -417,6 +419,10 @@ func escSequence(sz *int) Event {
}
*sz = 2
switch _buf[1] {
case 13:
return Event{AltEnter, 0, nil}
case 32:
return Event{AltSpace, 0, nil}
case 98:
return Event{AltB, 0, nil}
case 100: