diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-30 09:03:47 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-30 09:03:47 +1100 |
commit | d8fae8f898e1ee72dc4e85f50aa5cb73dbcfc60f (patch) | |
tree | 979063c4aa19ea6616c96b407c0dd1307073861c /cocoa | |
parent | e972daa4ea74c02762e38bc048045b68422d70b2 (diff) | |
download | scintilla-mirror-d8fae8f898e1ee72dc4e85f50aa5cb73dbcfc60f.tar.gz |
Bug [#1542]. Margin click focus handling on Cocoa.
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/ScintillaView.mm | 2 |
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); } |