From 883439cb72cf86103b6d27330b82cb29a49fe22f Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 12 Apr 2022 12:25:46 -0400 Subject: [PATCH] chore(keys): use sequences for alt+arrows --- key.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/key.go b/key.go index de3ae463b2..cf22dcbaab 100644 --- a/key.go +++ b/key.go @@ -323,6 +323,10 @@ var sequences = map[string]Key{ "\x1b[B": {Type: KeyDown}, "\x1b[C": {Type: KeyRight}, "\x1b[D": {Type: KeyLeft}, + "\x1b[1;3A": {Type: KeyUp, Alt: true}, + "\x1b[1;3B": {Type: KeyDown, Alt: true}, + "\x1b[1;3C": {Type: KeyRight, Alt: true}, + "\x1b[1;3D": {Type: KeyLeft, Alt: true}, "\x1b[1;5A": {Type: KeyCtrlUp}, "\x1b[1;5B": {Type: KeyCtrlDown}, "\x1b[1;5C": {Type: KeyCtrlRight}, @@ -421,10 +425,6 @@ var hexes = map[string]Key{ "1b5b367e": {Type: KeyPgDown}, "1b5b363b337e": {Type: KeyPgDown, Alt: true}, "1b1b5b367e": {Type: KeyPgDown, Alt: true}, // urxvt - "1b5b313b3341": {Type: KeyUp, Alt: true}, - "1b5b313b3342": {Type: KeyDown, Alt: true}, - "1b5b313b3343": {Type: KeyRight, Alt: true}, - "1b5b313b3344": {Type: KeyLeft, Alt: true}, // Powershell "1b4f41": {Type: KeyUp, Alt: false},