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

This commit is contained in:
Junegunn Choi committed 2016-05-13 00:43:50 +09:00
1 parent 66f86e1870
commit dd4be1da38
3 files changed
+15 -3

No files matched your search

+6
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: