Fixed: <rdar://problem/
3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
Reviewed by rjw.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::sendContextMenuEvent): check if SPI to always enable selecting closest word is enabled
* kwq/WebCoreBridge.h:
WebKit:
Fixed: <rdar://problem/
3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
Reviewed by rjw.
* WebCoreSupport.subproj/WebBridge.m:
(-[WebBridge selectWordBeforeMenuEvent]): new
* WebView.subproj/WebView.m:
(-[WebView _selectWordBeforeMenuEvent]): new SPI
(-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
* WebView.subproj/WebViewInternal.h:
* WebView.subproj/WebViewPrivate.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8506
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-02 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
+
+ Reviewed by rjw.
+
+ * kwq/KWQKHTMLPart.mm:
+ (KWQKHTMLPart::sendContextMenuEvent): check if SPI to always enable selecting closest word is enabled
+ * kwq/WebCoreBridge.h:
+
2005-02-02 Ken Kocienda <kocienda@apple.com>
Reviewed by me
bool swallowEvent = v->dispatchMouseEvent(EventImpl::CONTEXTMENU_EVENT,
mev.innerNode.handle(), true, 0, &qev, true, NodeImpl::MousePress);
- if (!swallowEvent && ([_bridge isEditable] || mev.innerNode.handle()->isContentEditable()) && !isPointInsideSelection(xm, ym)) {
+ if (!swallowEvent && !isPointInsideSelection(xm, ym) &&
+ ([_bridge selectWordBeforeMenuEvent] || [_bridge isEditable] || mev.innerNode.handle()->isContentEditable())) {
selectClosestWordFromMouseEvent(&qev, mev.innerNode, xm, ym);
}
- (void)handleAutoscrollForMouseDragged:(NSEvent *)event;
- (BOOL)mayStartDragAtEventLocation:(NSPoint)location;
+- (BOOL)selectWordBeforeMenuEvent;
+
- (int)historyLength;
- (void)goBackOrForward:(int)distance;
- (BOOL)canGoBackOrForward:(int)distance;
+2005-02-02 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
+
+ Reviewed by rjw.
+
+ * WebCoreSupport.subproj/WebBridge.m:
+ (-[WebBridge selectWordBeforeMenuEvent]): new
+ * WebView.subproj/WebView.m:
+ (-[WebView _selectWordBeforeMenuEvent]): new SPI
+ (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
+ * WebView.subproj/WebViewInternal.h:
+ * WebView.subproj/WebViewPrivate.h:
+
2005-02-02 Chris Blumenberg <cblu@apple.com>
Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
return [docView _mayStartDragAtEventLocation:location];
}
+- (BOOL)selectWordBeforeMenuEvent
+{
+ return [[_frame webView] _selectWordBeforeMenuEvent];
+}
+
- (int)historyLength
{
return [[[_frame webView] backForwardList] backListCount] + 1;
[[self _bridgeForCurrentSelection] insertParagraphSeparatorInQuotedContent];
}
+- (BOOL)_selectWordBeforeMenuEvent
+{
+ return _private->selectWordBeforeMenuEvent;
+}
+
+- (void)_setSelectWordBeforeMenuEvent:(BOOL)flag
+{
+ _private->selectWordBeforeMenuEvent = flag;
+}
+
@end
@implementation WebView (WebFileInternal)
BOOL dashboardBehaviorAlwaysAcceptsFirstMouse;
BOOL shouldUseFontSmoothing;
+ BOOL selectWordBeforeMenuEvent;
}
@end
@interface WebView (WebViewEditingInMail)
- (void)_insertNewlineInQuotedContent;
+- (BOOL)_selectWordBeforeMenuEvent;
+- (void)_setSelectWordBeforeMenuEvent:(BOOL)flag;
@end
@interface _WebSafeForwarder : NSObject