summaryrefslogtreecommitdiffstats
path: root/input/keycodes.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 /input/keycodes.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 'input/keycodes.c')
-rw-r--r--input/keycodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index bca9e17c14..c412191573 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -173,7 +173,8 @@ static const struct key_name key_names[] = {
{ MP_KEY_CHANNEL_DOWN,"CHANNEL_DOWN" },
{ MP_KEY_PLAYONLY, "PLAYONLY" },
{ MP_KEY_PAUSEONLY, "PAUSEONLY" },
- { MP_KEY_BACK, "BACK" },
+ { MP_KEY_GO_BACK, "GO_BACK" },
+ { MP_KEY_GO_FORWARD, "GO_FORWARD" },
{ MP_KEY_TOOLS, "TOOLS" },
{ MP_KEY_ZOOMIN, "ZOOMIN" },
{ MP_KEY_ZOOMOUT, "ZOOMOUT" },