Skip to content

Commit 9422a6d

Browse files
na-na-hikasper93
authored andcommitted
osdep/terminal-unix: use numpad keycodes
Use the dedicated numpad keycodes for +-*/.
1 parent db2b436 commit 9422a6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

osdep/terminal-unix.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ static const struct key_entry keys[] = {
130130
{"\033Ob", MP_KEY_DOWN | MP_KEY_MODIFIER_CTRL},
131131
{"\033Oc", MP_KEY_RIGHT | MP_KEY_MODIFIER_CTRL},
132132
{"\033Od", MP_KEY_LEFT | MP_KEY_MODIFIER_CTRL},
133-
{"\033Oj", '*'}, // also keypad, but we don't have separate codes for them
134-
{"\033Ok", '+'},
135-
{"\033Om", '-'},
133+
{"\033Oj", MP_KEY_KPMULTIPLY},
134+
{"\033Ok", MP_KEY_KPADD},
135+
{"\033Om", MP_KEY_KPSUBTRACT},
136136
{"\033On", MP_KEY_KPDEC},
137-
{"\033Oo", '/'},
137+
{"\033Oo", MP_KEY_KPDIVIDE},
138138
{"\033Op", MP_KEY_KP0},
139139
{"\033Oq", MP_KEY_KP1},
140140
{"\033Or", MP_KEY_KP2},

0 commit comments

Comments
 (0)