diff options
author | Niklas Haas <git@haasn.xyz> | 2018-05-23 19:37:47 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-24 22:12:02 +0300 |
commit | fea87c4253bd250d01d3624bf90aa6374ebda630 (patch) | |
tree | 6416b1d37d2b06f17c66368325f1caf63d0058c9 | |
parent | 814869759c59ed3ce16604837fbf55e4f5ff7392 (diff) | |
download | mpv-fea87c4253bd250d01d3624bf90aa6374ebda630.tar.bz2 mpv-fea87c4253bd250d01d3624bf90aa6374ebda630.tar.xz |
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
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |