Skip to content

Commit 2a58df0

Browse files
author
rarichter
committed
commits the patch from patenaudemat to SRValidator that enables you to capture f-keys to trunk
git-svn-id: http://shortcutrecorder.googlecode.com/svn/trunk@33 95fa3068-9819-0410-9c96-7759cbfcbc6e
1 parent 3a5ea9f commit 2a58df0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/SRValidator.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ - (BOOL) isKeyCode:(signed short)keyCode andFlagsTaken:(unsigned int)flags error
100100
globalShiftMod = NO;
101101
globalCtrlMod = NO;
102102

103-
globalHotKeyCharCode = [(NSNumber *)[globalHotKeyInfoDictionary objectForKey:(NSString *)kHISymbolicHotKeyCode] unsignedShortValue];
103+
globalHotKeyCharCode = [(NSNumber *)[globalHotKeyInfoDictionary objectForKey:(NSString *)kHISymbolicHotKeyCode] shortValue];
104104
globalHotKeyUniChar = [[[NSString stringWithFormat:@"%C", globalHotKeyCharCode] uppercaseString] characterAtIndex:0];
105105

106106
CFNumberGetValue((CFNumberRef)[globalHotKeyInfoDictionary objectForKey: (NSString *)kHISymbolicHotKeyModifiers],kCFNumberSInt32Type,&gobalHotKeyFlags);
@@ -116,7 +116,7 @@ - (BOOL) isKeyCode:(signed short)keyCode andFlagsTaken:(unsigned int)flags error
116116
localHotKeyUniChar = [localKeyString characterAtIndex:0];
117117

118118
// compare unichar value and modifier flags
119-
if ( ( globalHotKeyUniChar == localHotKeyUniChar )
119+
if ( ( globalHotKeyCharCode == keyCode )
120120
&& ( globalCommandMod == localCommandMod )
121121
&& ( globalOptionMod == localOptionMod )
122122
&& ( globalShiftMod == localShiftMod )

0 commit comments

Comments
 (0)