summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/input.c1
-rw-r--r--input/keycodes.h1
-rw-r--r--libvo/x11_common.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index df9c884935..b5e66f6603 100644
--- a/input/input.c
+++ b/input/input.c
@@ -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" },
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 c5a09e4bba..42f2ae0869 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},