diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-06-06 21:31:20 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-06-06 21:33:31 +0200 |
commit | e8a6e1a201f86c9b0946206526cb9ecd85595ea1 (patch) | |
tree | d8b956b0ad0dd7380ae4b6481075a857bc91527c /osdep/macosx_application_objc.h | |
parent | 66199059024dc014a658d8fcc83f4c432a74b06f (diff) | |
download | mpv-e8a6e1a201f86c9b0946206526cb9ecd85595ea1.tar.bz2 mpv-e8a6e1a201f86c9b0946206526cb9ecd85595ea1.tar.xz |
macosx_events: handle key modifiers with media keys
This was overlooked in the previous inplementation. Adding it required some
refactoring of the `handleKeyDown:` method in order to extract common parts
with `handleMediaKey:`.
Diffstat (limited to 'osdep/macosx_application_objc.h')
-rw-r--r-- | osdep/macosx_application_objc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_application_objc.h b/osdep/macosx_application_objc.h index 0a6b70a95d..27c1871dc4 100644 --- a/osdep/macosx_application_objc.h +++ b/osdep/macosx_application_objc.h @@ -28,7 +28,7 @@ struct cocoa_input_queue; @end @interface EventsResponder : NSObject <HIDRemoteDelegate> -- (BOOL)handleMediaKey:(int)key; +- (BOOL)handleMediaKey:(NSEvent *)event; - (NSEvent *)handleKeyDown:(NSEvent *)event; - (void)startAppleRemote; - (void)stopAppleRemote; |