diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-13 10:09:40 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-03-25 22:30:37 +0300 |
commit | f561c19fe1d16e56c9143043f51fc0cc42ac0e4f (patch) | |
tree | d276b4ea5b8e30d4cb5c2028ab01712146e94f2a | |
parent | 7f6dae08e11fa90f7c8cb170daaf7ad23812f66d (diff) | |
download | mpv-f561c19fe1d16e56c9143043f51fc0cc42ac0e4f.tar.bz2 mpv-f561c19fe1d16e56c9143043f51fc0cc42ac0e4f.tar.xz |
x11: input: add print and menu keys
-rw-r--r-- | input/input.c | 1 | ||||
-rw-r--r-- | input/keycodes.h | 1 | ||||
-rw-r--r-- | libvo/x11_common.c | 1 |
3 files changed, 3 insertions, 0 deletions
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}, |