Created
October 22, 2009 04:46
-
-
Save saikat/215734 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)sendEvent:(CPEvent)anEvent | |
{ | |
var type = [anEvent type], | |
point = [anEvent locationInWindow], | |
currentFirstResponder = [self firstResponder]; | |
[super sendEvent:anEvent]; | |
if (type == CPLeftMouseDown && | |
[currentFirstResponder class] == [CPTextViewScroller class] && | |
[[self firstResponder] class] == [CPTextViewScroller class]) { | |
if ([_leftMouseDownView class] !== [CPTextViewScroller class]) | |
[self makeFirstResponder:_leftMouseDownView]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment