File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments