- fixed <rdar://problem/
3691569> REGRESSION (142): cmd-shift-clicking on a link
now also extends selection (even if there wasn't one before)
* khtml/khtml_part.cpp:
(KHTMLPart::handleMousePressEventSingleClick):
if there's a URL associated with the event, don't extend the selection
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6981
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-07-08 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Ken.
+
+ - fixed <rdar://problem/3691569> REGRESSION (142): cmd-shift-clicking on a link
+ now also extends selection (even if there wasn't one before)
+
+ * khtml/khtml_part.cpp:
+ (KHTMLPart::handleMousePressEventSingleClick):
+ if there's a URL associated with the event, don't extend the selection
+
2004-07-08 Ken Kocienda <kocienda@apple.com>
Reviewed by Vicki
if (!innerNode.isNull() && innerNode.handle()->renderer() &&
innerNode.handle()->renderer()->shouldSelect()) {
- bool extendSelection = mouse->state() & ShiftButton;
+ // Extend the selection if the Shift key is down, unless the click is in a link.
+ bool extendSelection = (mouse->state() & ShiftButton) && (!event->url().isNull());
// Don't restart the selection when the mouse is pressed on an
// existing selection so we can allow for text dragging.