Changeset 572 for trunk/Cocoa/Pester
- Timestamp:
- 07/20/09 06:03:42 (15 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/English.lproj/Preferences.nib/classes.nib
r361 r572 20 20 <dict> 21 21 <key>CLASS</key> 22 <string>NSObject</string> 23 <key>LANGUAGE</key> 24 <string>ObjC</string> 25 </dict> 26 <dict> 27 <key>CLASS</key> 22 28 <string>FirstResponder</string> 23 29 <key>LANGUAGE</key> … … 25 31 <key>SUPERCLASS</key> 26 32 <string>NSObject</string> 27 </dict>28 <dict>29 <key>CLASS</key>30 <string>NSObject</string>31 <key>LANGUAGE</key>32 <string>ObjC</string>33 33 </dict> 34 34 <dict> … … 50 50 <string>NSWindowController</string> 51 51 </dict> 52 <dict> 53 <key>CLASS</key> 54 <string>NSWindow</string> 55 <key>LANGUAGE</key> 56 <string>ObjC</string> 57 <key>SUPERCLASS</key> 58 <string>NSResponder</string> 59 </dict> 52 60 </array> 53 61 <key>IBVersion</key> -
trunk/Cocoa/Pester/Source/English.lproj/Preferences.nib/info.nib
r361 r572 4 4 <dict> 5 5 <key>IBFramework Version</key> 6 <string>6 29</string>6 <string>677</string> 7 7 <key>IBLastKnownRelativeProjectPath</key> 8 <string>../ ../Pester.xcodeproj</string>8 <string>../Pester.xcodeproj</string> 9 9 <key>IBOldestOS</key> 10 10 <integer>5</integer> … … 14 14 </array> 15 15 <key>IBSystem Version</key> 16 <string>9 B18</string>16 <string>9J61</string> 17 17 <key>targetFramework</key> 18 18 <string>IBCocoaFramework</string> -
trunk/Cocoa/Pester/Source/NJRHotKeyField.m
r355 r572 111 111 } 112 112 113 - (void)textDidEndEditing:(NSNotification *)notification; 114 { 115 [self showKeyEquivalentAttributedStringFinalized: YES]; 116 [super textDidEndEditing: notification]; 117 } 118 113 119 #pragma mark event handling 114 120 … … 125 131 id delegate = [self delegate]; 126 132 NSString *message = nil; 127 if (delegate != nil && ![delegate hotKeyField: self shouldAcceptCharacter: [characters characterAtIndex: 0] modifierFlags: modifierFlags rejectionMessage: &message]) { 133 unichar character = [characters characterAtIndex: 0]; 134 if (character == NSTabCharacter || character == NSBackTabCharacter) 135 return; 136 if (delegate != nil && ![delegate hotKeyField: self shouldAcceptCharacter: character modifierFlags: modifierFlags rejectionMessage: &message]) { 128 137 [self showStatus: message != nil ? message : @"key is unavailable for use"]; 129 138 } else { … … 137 146 - (BOOL)performKeyEquivalent:(NSEvent *)theEvent; 138 147 { 139 [self keyUp: theEvent]; 148 if ([[self window] firstResponder] == self) 149 [self keyUp: theEvent]; 140 150 return [super performKeyEquivalent: theEvent]; 141 151 } -
trunk/Cocoa/Pester/Source/PSPreferencesController.m
r355 r572 83 83 [set formUnionWithCharacterSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; 84 84 [set formUnionWithCharacterSet: [NSCharacterSet punctuationCharacterSet]]; 85 [set addCharactersInString: @"\ t\r\e\x7f\x03\x19"]; // tab, CR, escape, delete, enter, backtab85 [set addCharactersInString: @"\r\e\x7f\x03"]; // CR, escape, delete, enter 86 86 [set addCharactersInRange: NSMakeRange(0xF700, 0x1FF)]; // reserved function key range 87 87 [set removeCharactersInRange: NSMakeRange(NSF1FunctionKey, 15)]; // F1-F15
Note:
See TracChangeset
for help on using the changeset viewer.