1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

x11: input: add print and menu keys

This commit is contained in:
wm4 2012-01-13 10:09:40 +01:00 committed by Uoti Urpala
parent 7f6dae08e1
commit f561c19fe1
3 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,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" },

View File

@ -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

View File

@ -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},