Changeset 559 for trunk/Cocoa/Pester/Source/NJRHotKeyManager.m
- Timestamp:
- 07/18/09 06:00:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NJRHotKeyManager.m
r355 r559 197 197 if (shortcutsEnabled && !(shortcut->isRegistered)) { 198 198 EventHotKeyID keyID; 199 OSStatus err;200 199 201 200 keyID.signature = kHotKeyManagerSignature; 202 201 keyID.id = (unsigned long)shortcut; 203 if ( (err = RegisterEventHotKey([hotKey keyCode], [hotKey modifiers], keyID, GetEventDispatcherTarget(), 0, &shortcut->hotKeyRef)) != noErr)202 if (RegisterEventHotKey([hotKey keyCode], [hotKey modifiers], keyID, GetEventDispatcherTarget(), 0, &shortcut->hotKeyRef) != noErr) 204 203 return NO; 205 204
Note:
See TracChangeset
for help on using the changeset viewer.