summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2015-02-14 03:50:26 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-16 18:13:36 +0900
commit8fdd688d480da8bd8584774cb580ca3c91bcfe29 (patch)
treeb4eccc09c546e0e68a7d7bc3325eab5d15247ae2 /video
parent63304b95a1786bc406c65aea3f5fec63de548687 (diff)
downloadmpv-8fdd688d480da8bd8584774cb580ca3c91bcfe29.tar.bz2
mpv-8fdd688d480da8bd8584774cb580ca3c91bcfe29.tar.xz
x11: add XK_Cancel to the list of special keys
Some IR receivers emit this key by default for remote control buttons. Make it mappable. (cherry picked from commit 9aaec7cffb2fb1543d4c3cabb55165f606c0b87d)
Diffstat (limited to 'video')
-rw-r--r--video/out/x11_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 3a1b47540f..3dfb6e1218 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -551,6 +551,7 @@ static const struct mp_keymap keymap[] = {
{XK_Pause, MP_KEY_PAUSE}, {XK_Escape, MP_KEY_ESC},
{XK_BackSpace, MP_KEY_BS}, {XK_Tab, MP_KEY_TAB}, {XK_Return, MP_KEY_ENTER},
{XK_Menu, MP_KEY_MENU}, {XK_Print, MP_KEY_PRINT},
+ {XK_Cancel, MP_KEY_CANCEL},
// cursor keys
{XK_Left, MP_KEY_LEFT}, {XK_Right, MP_KEY_RIGHT}, {XK_Up, MP_KEY_UP},