Reviewed by Mark Rowe.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27995
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-23 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Mark Rowe.
+
+ Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
+
+ * WebView/WebHTMLView.mm:
+ (-[WebHTMLView mouseDown:]):
+
2007-11-22 Dan Bernstein <mitz@apple.com>
Reviewed by Antti Koivisto.
- (void)mouseDown:(NSEvent *)event
{
- [self retain];
+ RetainPtr<WebHTMLView> protector = self;
+ if ([[self inputContext] wantsToHandleMouseEvents] && [[self inputContext] handleMouseEvent:event])
+ return;
_private->handlingMouseDownEvent = YES;
_private->firstResponderTextViewAtMouseDownTime = nil;
_private->handlingMouseDownEvent = NO;
-
- [self release];
}
- (void)dragImage:(NSImage *)dragImage