forked from Mirrors/bubbletea
Fix home/end on vt100
This commit is contained in:
parent
70576bc9e0
commit
2fe4aad5e6
6
key.go
6
key.go
|
@ -383,9 +383,11 @@ var sequences = map[string]Key{
|
||||||
"\x1b[3~": {Type: KeyDelete},
|
"\x1b[3~": {Type: KeyDelete},
|
||||||
"\x1b[3;3~": {Type: KeyDelete, Alt: true},
|
"\x1b[3;3~": {Type: KeyDelete, Alt: true},
|
||||||
"\x1b[1~": {Type: KeyHome},
|
"\x1b[1~": {Type: KeyHome},
|
||||||
"\x1b[1;3H~": {Type: KeyHome, Alt: true},
|
"\x1b[H": {Type: KeyHome},
|
||||||
|
"\x1b[1;3H": {Type: KeyHome, Alt: true},
|
||||||
"\x1b[4~": {Type: KeyEnd},
|
"\x1b[4~": {Type: KeyEnd},
|
||||||
"\x1b[1;3F~": {Type: KeyEnd, Alt: true},
|
"\x1b[F": {Type: KeyEnd},
|
||||||
|
"\x1b[1;3F": {Type: KeyEnd, Alt: true},
|
||||||
"\x1b[5~": {Type: KeyPgUp},
|
"\x1b[5~": {Type: KeyPgUp},
|
||||||
"\x1b[5;3~": {Type: KeyPgUp, Alt: true},
|
"\x1b[5;3~": {Type: KeyPgUp, Alt: true},
|
||||||
"\x1b[6~": {Type: KeyPgDown},
|
"\x1b[6~": {Type: KeyPgDown},
|
||||||
|
|
Loading…
Reference in New Issue