Skip to content

Commit

Permalink
Remove NSEventModifierFlags for osx >= 10.11
Browse files Browse the repository at this point in the history
This is supposed to fix issue #21
  • Loading branch information
patzy committed Oct 16, 2017
1 parent 45e722a commit 72189f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osx/bridge/appkit.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <AppKit/AppKit.h>
#include <malloc/malloc.h>
#include <CoreServices/CoreServices.h>
#include <Availability.h>
#include <unistd.h>
#include <string.h>

Expand Down Expand Up @@ -41,10 +42,12 @@ unsigned short NSEventKeyCode (NSEvent *event)
return [event keyCode];
}

#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_11
NSUInteger NSEventModifierFlags (NSEvent *event)
{
return [event modifierFlags];
}
#endif

NSWindow *NSEventWindow (NSEvent *event)
{
Expand Down

0 comments on commit 72189f9

Please sign in to comment.