From d8fae8f898e1ee72dc4e85f50aa5cb73dbcfc60f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 30 Oct 2013 09:03:47 +1100 Subject: Bug [#1542]. Margin click focus handling on Cocoa. --- cocoa/ScintillaView.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa/ScintillaView.mm') 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); } -- cgit v1.2.3