aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-10-30 09:03:47 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-10-30 09:03:47 +1100
commitd8fae8f898e1ee72dc4e85f50aa5cb73dbcfc60f (patch)
tree979063c4aa19ea6616c96b407c0dd1307073861c /cocoa
parente972daa4ea74c02762e38bc048045b68422d70b2 (diff)
downloadscintilla-mirror-d8fae8f898e1ee72dc4e85f50aa5cb73dbcfc60f.tar.gz
Bug [#1542]. Margin click focus handling on Cocoa.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaView.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 7b471f786..b6c39cf05 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -105,6 +105,8 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
- (void) mouseDown: (NSEvent *) theEvent
{
+ NSClipView *textView = [[self scrollView] contentView];
+ [[textView window] makeFirstResponder:textView];
owner.backend->MouseDown(theEvent);
}