Fix building on Mac OS X < 10.12

This patch is inspired by a compatibility header in old WebKit. See
1262b1fbf8/Source/WTF/wtf/mac/AppKitCompatibilityDeclarations.h

Ref: https://github.com/keepassxreboot/keepassxc/issues/2899
This commit is contained in:
Chih-Hsuan Yen 2019-07-04 20:43:11 +08:00 committed by Jonathan White
parent ce1f19cacc
commit e1471cbd19

View File

@ -19,6 +19,11 @@
#import "AppKitImpl.h"
#import <AppKit/NSWorkspace.h>
#import <Availability.h>
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
static const NSEventMask NSEventMaskKeyDown = NSKeyDownMask;
#endif
@implementation AppKitImpl