Skip to content

Instantly share code, notes, and snippets.

@saikat
Created October 22, 2009 04:46
Show Gist options
  • Save saikat/215734 to your computer and use it in GitHub Desktop.
Save saikat/215734 to your computer and use it in GitHub Desktop.
- (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