Skip to content

Commit

Permalink
Add support for arrow keys in DECCKM mode
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Apr 12, 2022
1 parent 7b71d8c commit dde646f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions key.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ var sequences = map[string]Key{
"\x1b[1;2B": {Type: KeyShiftDown},
"\x1b[1;2C": {Type: KeyShiftRight},
"\x1b[1;2D": {Type: KeyShiftLeft},
"\x1b[OA": {Type: KeyShiftUp}, // DECCKM
"\x1b[OB": {Type: KeyShiftDown}, // DECCKM
"\x1b[OC": {Type: KeyShiftRight}, // DECCKM
"\x1b[OD": {Type: KeyShiftLeft}, // DECCKM
"\x1b[a": {Type: KeyShiftUp}, // urxvt
"\x1b[b": {Type: KeyShiftDown}, // urxvt
"\x1b[c": {Type: KeyShiftRight}, // urxvt
Expand Down

0 comments on commit dde646f

Please sign in to comment.