summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-03-04 22:52:48 +0100
committerAkemi <der.richter@gmx.de>2017-03-09 18:00:16 +0100
commitca1dd7cc6127d0ca1a02ed1ac1b77a0d0e9004e1 (patch)
tree81f4a079d8b1d94fc7439100f138e3aa19eb228a /osdep
parent7bddd3fb4cdb111b047965fe9884af765c0ad2bb (diff)
downloadmpv-ca1dd7cc6127d0ca1a02ed1ac1b77a0d0e9004e1.tar.bz2
mpv-ca1dd7cc6127d0ca1a02ed1ac1b77a0d0e9004e1.tar.xz
osx: add key mappings for previous and next Media Keys
Fixes #4204
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_events.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m
index 494c9aa88c..cd1d9df9d8 100644
--- a/osdep/macosx_events.m
+++ b/osdep/macosx_events.m
@@ -358,9 +358,11 @@ void cocoa_set_input_context(struct input_ctx *input_context)
- (BOOL)handleMediaKey:(NSEvent *)event
{
NSDictionary *keymapd = @{
- @(NX_KEYTYPE_PLAY): @(MP_KEY_PLAY),
- @(NX_KEYTYPE_REWIND): @(MP_KEY_PREV),
- @(NX_KEYTYPE_FAST): @(MP_KEY_NEXT),
+ @(NX_KEYTYPE_PLAY): @(MP_KEY_PLAY),
+ @(NX_KEYTYPE_REWIND): @(MP_KEY_PREV),
+ @(NX_KEYTYPE_FAST): @(MP_KEY_NEXT),
+ @(NX_KEYTYPE_PREVIOUS): @(MP_KEY_REWIND),
+ @(NX_KEYTYPE_NEXT): @(MP_KEY_FORWARD),
};
return [self handleKey:mk_code(event)