aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
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
commitf2e838adbc5da6cda419f6384a40886d7decaf30 (patch)
tree975a6dbabe9c246e14355aecb201360c557c8cb7 /cocoa/ScintillaView.mm
parent1025b99469b225193bd6f6adddb7d8217ea993d6 (diff)
downloadscintilla-mirror-f2e838adbc5da6cda419f6384a40886d7decaf30.tar.gz
Bug [#1542]. Margin click focus handling on Cocoa.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-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);
}