From e8a6e1a201f86c9b0946206526cb9ecd85595ea1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 6 Jun 2013 21:31:20 +0200 Subject: 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:`. --- osdep/macosx_application_objc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdep/macosx_application_objc.h') 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 -- (BOOL)handleMediaKey:(int)key; +- (BOOL)handleMediaKey:(NSEvent *)event; - (NSEvent *)handleKeyDown:(NSEvent *)event; - (void)startAppleRemote; - (void)stopAppleRemote; -- cgit v1.2.3