mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
x11: add print and menu keys
This commit is contained in:
parent
10ab86b73d
commit
fdc7155ced
@ -229,6 +229,7 @@ static const struct key_name key_names[] = {
|
||||
{ KEY_PAGE_UP, "PGUP" },
|
||||
{ KEY_PAGE_DOWN, "PGDWN" },
|
||||
{ KEY_ESC, "ESC" },
|
||||
{ KEY_PRINT, "PRINT" },
|
||||
{ KEY_RIGHT, "RIGHT" },
|
||||
{ KEY_LEFT, "LEFT" },
|
||||
{ KEY_DOWN, "DOWN" },
|
||||
|
@ -39,6 +39,7 @@
|
||||
#define KEY_PAGE_UP (KEY_CTRL+5)
|
||||
#define KEY_PAGE_DOWN (KEY_CTRL+6)
|
||||
#define KEY_ESC (KEY_CTRL+7)
|
||||
#define KEY_PRINT (KEY_CTRL+8)
|
||||
|
||||
/* Control keys short name */
|
||||
#define KEY_BS KEY_BACKSPACE
|
||||
|
@ -542,6 +542,7 @@ static const struct mp_keymap keymap[] = {
|
||||
// special keys
|
||||
{wsPause, KEY_PAUSE}, {wsEscape, KEY_ESC}, {wsBackSpace, KEY_BS},
|
||||
{wsTab, KEY_TAB}, {wsEnter, KEY_ENTER},
|
||||
{XK_Menu, KEY_MENU}, {XK_Print, KEY_PRINT},
|
||||
|
||||
// cursor keys
|
||||
{wsLeft, KEY_LEFT}, {wsRight, KEY_RIGHT}, {wsUp, KEY_UP}, {wsDown, KEY_DOWN},
|
||||
|
Loading…
Reference in New Issue
Block a user