Changeset 74 for trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEWebKit.m
- Timestamp:
- 01/30/03 05:31:29 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEWebKit.m
r66 r74 79 79 { 80 80 // don't want command-option-click, command-shift-click, etc. to trigger 81 if (ICCF_enabled && ICCF_ EventIsCommandMouseDown(e)) {81 if (ICCF_enabled && ICCF_prefs.commandClickEnabled && ICCF_EventIsCommandMouseDown(e)) { 82 82 // save selection: it will be deselected on super mouseDown 83 83 WebCoreBridge *bridge = [(WebHTMLView *)self _bridge]; … … 100 100 NSPoint upPt = [e locationInWindow]; 101 101 downEvent = nil; 102 // XXX make hysterisis a constant 103 if (abs(downPt.x - upPt.x) > 4 && abs(downPt.y - upPt.y) > 4) 102 if (abs(downPt.x - upPt.x) > kICHysteresisPixels && abs(downPt.y - upPt.y) > kICHysteresisPixels) 104 103 return; 105 104 … … 114 113 NS_VOIDRETURN; // donÕt activate on links 115 114 } 116 // XXX works, but doesn't update117 115 if (selectedString == nil || [selectedString length] == 0) 118 116 NS_VOIDRETURN; 119 int i; 120 for (i = 0 ; i < 3 ; i++) { 121 [bridge deselectAll]; 122 [self display]; 123 usleep(60000); 124 ICCF_SetWebCoreBridgeSelection(bridge, &selection); 125 [self display]; 126 usleep(60000); 117 // XXX works, but doesn't update 118 ICCF_StartIC(); 119 ICCF_LaunchURL(selectedString, ICCF_OptionKeyIsDown()); 120 ICCF_SetWebCoreBridgeSelection(bridge, &selection); 121 if (ICCF_prefs.textBlinkEnabled) { 122 int i; 123 for (i = 0 ; i < ICCF_prefs.textBlinkCount ; i++) { 124 [bridge deselectAll]; 125 usleep(kICBlinkDelayUsecs); 126 ICCF_SetWebCoreBridgeSelection(bridge, &selection); 127 usleep(kICBlinkDelayUsecs); 128 } 127 129 } 128 ICCF_SetWebCoreBridgeSelection(bridge, &selection);129 [self display];130 ICCF_StartIC();131 ICCF_LaunchURL(selectedString);132 130 NS_HANDLER 133 131 ICCF_HandleException(localException);
Note:
See TracChangeset
for help on using the changeset viewer.