From f561c19fe1d16e56c9143043f51fc0cc42ac0e4f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Jan 2012 10:09:40 +0100 Subject: [PATCH] x11: input: add print and menu keys --- input/input.c | 1 + input/keycodes.h | 1 + libvo/x11_common.c | 1 + 3 files changed, 3 insertions(+) diff --git a/input/input.c b/input/input.c index cc967bb4fa..6f3335d8db 100644 --- a/input/input.c +++ b/input/input.c @@ -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" }, diff --git a/input/keycodes.h b/input/keycodes.h index 2467f31685..84b41a3e89 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -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 diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 7030be9d8b..9f19910234 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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}, -- 2.11.4.GIT