Source

BWToolkit / NSEvent+BWAdditions.m

Diff from to

NSEvent+BWAdditions.m

 
 @implementation NSEvent (BWAdditions)
 
-+ (BOOL)shiftKeyIsDown
++ (BOOL)bwShiftKeyIsDown
 {
 	if ([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask)
 		return YES;
 	return NO;
 }
 
-+ (BOOL)commandKeyIsDown
++ (BOOL)bwCommandKeyIsDown
 {
 	if ([[NSApp currentEvent] modifierFlags] & NSCommandKeyMask)
 		return YES;
 	return NO;
 }
 
-+ (BOOL)optionKeyIsDown
++ (BOOL)bwOptionKeyIsDown
 {
 	if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
 		return YES;
 	return NO;
 }
 
-+ (BOOL)controlKeyIsDown
++ (BOOL)bwControlKeyIsDown
 {
 	if ([[NSApp currentEvent] modifierFlags] & NSControlKeyMask)
 		return YES;
 	return NO;
 }
 
-+ (BOOL)capsLockKeyIsDown
++ (BOOL)bwCapsLockKeyIsDown
 {
 	if ([[NSApp currentEvent] modifierFlags] & NSAlphaShiftKeyMask)
 		return YES;