diff --git a/key.go b/key.go index 14dc10f..a6d2ce4 100644 --- a/key.go +++ b/key.go @@ -383,9 +383,11 @@ var sequences = map[string]Key{ "\x1b[3~": {Type: KeyDelete}, "\x1b[3;3~": {Type: KeyDelete, Alt: true}, "\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[1;3F~": {Type: KeyEnd, Alt: true}, + "\x1b[F": {Type: KeyEnd}, + "\x1b[1;3F": {Type: KeyEnd, Alt: true}, "\x1b[5~": {Type: KeyPgUp}, "\x1b[5;3~": {Type: KeyPgUp, Alt: true}, "\x1b[6~": {Type: KeyPgDown},