From f2e838adbc5da6cda419f6384a40886d7decaf30 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 ++ doc/ScintillaHistory.html | 4 ++++ 2 files changed, 6 insertions(+) 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); } diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index d188f080a..914893b7e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -482,6 +482,10 @@ When scroll width is tracked, take width of annotation lines into account.
  • + On Cocoa, clicking in margin now sets focus. + Bug #1542. +
  • +
  • On Cocoa, multipaste mode now works. Bug #1541.
  • -- cgit v1.2.3