Source

BWToolkit+Cocotron / NSEvent+BWAdditions.h

Full commit
//
//  NSEvent+BWAdditions.h
//  BWToolkit
//
//  Created by Brandon Walkin (www.brandonwalkin.com)
//  All code is provided under the New BSD license.
//

#import <Cocoa/Cocoa.h>

@interface NSEvent (BWAdditions)

+ (BOOL)bwShiftKeyIsDown;
+ (BOOL)bwCommandKeyIsDown;
+ (BOOL)bwOptionKeyIsDown;
+ (BOOL)bwControlKeyIsDown;
+ (BOOL)bwCapsLockKeyIsDown;

@end