summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2023-11-27 01:04:10 -0500
committersfan5 <sfan5@live.de>2023-12-06 11:07:37 +0100
commit4c47dbe22c8afedbb3603e4acb23621277f5ef43 (patch)
treea675b4456510461cae7fb9603987fad1ec93c466 /video/out/x11_common.c
parentdf166997ae6cc10b444b00f664e89b828140bc68 (diff)
downloadmpv-4c47dbe22c8afedbb3603e4acb23621277f5ef43.tar.bz2
mpv-4c47dbe22c8afedbb3603e4acb23621277f5ef43.tar.xz
input: add missing forward media key
XF86Back and XF86Forward are mostly used to navigate file and web browsers to go back/forward in history. XF86Forward isn't recognized right now, so add it. Because XF86AudioForward already takes the "FORWARD" name, rename the browse keys to GO_BACK and GO_FORWARD instead.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 7b51791147..d006445cdb 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -754,7 +754,8 @@ static const struct mp_keymap keymap[] = {
{XF86XK_HomePage, MP_KEY_HOMEPAGE}, {XF86XK_WWW, MP_KEY_WWW},
{XF86XK_Mail, MP_KEY_MAIL}, {XF86XK_Favorites, MP_KEY_FAVORITES},
{XF86XK_Search, MP_KEY_SEARCH}, {XF86XK_Sleep, MP_KEY_SLEEP},
- {XF86XK_Back, MP_KEY_BACK}, {XF86XK_Tools, MP_KEY_TOOLS},
+ {XF86XK_Back, MP_KEY_GO_BACK}, {XF86XK_Forward, MP_KEY_GO_FORWARD},
+ {XF86XK_Tools, MP_KEY_TOOLS},
{XF86XK_ZoomIn, MP_KEY_ZOOMIN}, {XF86XK_ZoomOut, MP_KEY_ZOOMOUT},
{0, 0}