From ca1dd7cc6127d0ca1a02ed1ac1b77a0d0e9004e1 Mon Sep 17 00:00:00 2001 From: Akemi Date: Sat, 4 Mar 2017 22:52:48 +0100 Subject: osx: add key mappings for previous and next Media Keys Fixes #4204 --- osdep/macosx_events.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'osdep') 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) -- cgit v1.2.3