From fea87c4253bd250d01d3624bf90aa6374ebda630 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 23 May 2018 19:37:47 +0200 Subject: x11: support Shift+TAB For some reason, the X default modifier map binds shift+tab to ISO_Left_Tab instead of the regular Tab. So to get Shift+TAB recognized by mpv, we also need to accept ISO_Left_Tab. This patch matches what other programs like e.g. Qt do, which treat Tab and ISO_Left_Tab as the same thing. God only knows why the distinction exists, and why X decides to mix up its bindings like that. Fixes #5849 --- video/out/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 5f2c658a9c..79aac3f136 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -630,7 +630,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}, + {XK_Cancel, MP_KEY_CANCEL}, {XK_ISO_Left_Tab, MP_KEY_TAB}, // cursor keys {XK_Left, MP_KEY_LEFT}, {XK_Right, MP_KEY_RIGHT}, {XK_Up, MP_KEY_UP}, -- cgit v1.2.3