Add support for alt-{up,down,left,right} keys

Close #1234
This commit is contained in:
Junegunn Choi
2018-04-12 17:39:28 +09:00
parent 7add75126d
commit 7dbbbef51a
5 changed files with 48 additions and 1 deletions

View File

@@ -410,6 +410,14 @@ func parseKeyChords(str string, message string) map[int]string {
chord = tui.AltSlash
case "alt-bs", "alt-bspace":
chord = tui.AltBS
case "alt-up":
chord = tui.AltUp
case "alt-down":
chord = tui.AltDown
case "alt-left":
chord = tui.AltLeft
case "alt-right":
chord = tui.AltRight
case "tab":
chord = tui.Tab
case "btab", "shift-tab":