- Timestamp:
- 03/05/08 03:49:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.m
r436 r437 206 206 207 207 void ICCF_LaunchURLFromTextView(NSTextView *self, NSEvent *triggeringEvent) { 208 NSColor *insertionPointColor = [self insertionPointColor];208 BOOL isEditable = [self isEditable]; 209 209 210 210 @try { … … 243 243 244 244 if (ICCF_LaunchURL(url, ICCF_KeyboardAction(triggeringEvent)) && ICCF_prefs.textBlinkEnabled) { 245 if (isEditable) 246 [self setEditable: NO]; 247 245 248 for (unsigned i = 0 ; i < ICCF_prefs.textBlinkCount ; i++) { 246 249 NSRange emptyRange = {range.location, 0}; … … 248 251 [self display]; 249 252 usleep(kICBlinkDelayUsecs); 250 [self setInsertionPointColor: [self backgroundColor]];251 253 [self setSelectedRange: range affinity: NSSelectionAffinityDownstream stillSelecting: YES]; 252 254 [self display]; … … 259 261 260 262 ICCF_StopIC(); 261 [self setInsertionPointColor: insertionPointColor]; 263 if (isEditable) 264 [self setEditable: YES]; 262 265 } 263 266
Note:
See TracChangeset
for help on using the changeset viewer.