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

@@ -315,6 +315,10 @@ func parseKeyChords(str string, message string) map[int]string {
chord = curses.AltZ + int(' ')
case "bspace", "bs":
chord = curses.BSpace
case "alt-enter", "alt-return":
chord = curses.AltEnter
case "alt-space":
chord = curses.AltSpace
case "alt-bs", "alt-bspace":
chord = curses.AltBS
case "tab":