1
0
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:
wm4 2012-01-13 10:09:40 +01:00
parent 10ab86b73d
commit fdc7155ced
3 changed files with 3 additions and 0 deletions

View File

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

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