mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
terminal-unix: add key_entry defs for DECCKM mode
zsh often sets DECCKM (i.e. Cursor Key Mode) meaning the arrow keys send `SS3 A/B/C/D` instead of `CSI A/B/C/D`. Add `key_entry` definitions for this alongside the existing DECCKM Reset definitions.
This commit is contained in:
parent
ec7f2388af
commit
caa5d8170e
@ -84,6 +84,10 @@ static const struct key_entry keys[] = {
|
||||
{"\033[23~", MP_KEY_F+11},
|
||||
{"\033[24~", MP_KEY_F+12},
|
||||
|
||||
{"\033OA", MP_KEY_UP},
|
||||
{"\033OB", MP_KEY_DOWN},
|
||||
{"\033OC", MP_KEY_RIGHT},
|
||||
{"\033OD", MP_KEY_LEFT},
|
||||
{"\033[A", MP_KEY_UP},
|
||||
{"\033[B", MP_KEY_DOWN},
|
||||
{"\033[C", MP_KEY_RIGHT},
|
||||
|
Loading…
Reference in New Issue
Block a user