osx: add key mappings for previous and next Media Keys

Fixes #4204
This commit is contained in:
Akemi 2017-03-04 22:52:48 +01:00
parent 7bddd3fb4c
commit ca1dd7cc61
1 changed files with 5 additions and 3 deletions

View File

@ -361,6 +361,8 @@ void cocoa_set_input_context(struct input_ctx *input_context)
@(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)