diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2021-05-09 16:39:30 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2021-05-09 16:39:30 +1000 |
commit | 843ce05440fcd4ba7d19f8b612ab526c88296ad0 (patch) | |
tree | 964c741219c81d990ea9336c66a6803f16bf4a6b /cocoa/ScintillaView.mm | |
parent | 8827755d994e9ebb49097da51a4e460c56385774 (diff) | |
download | scintilla-mirror-843ce05440fcd4ba7d19f8b612ab526c88296ad0.tar.gz |
Change first responder / active handling so only treating as focussed when
both active and first responder.
This has no visual effect yet but allows greying the selection when not focussed.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index c0b2ee950..593722c1e 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -772,7 +772,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) { * The editor is getting the foreground control (the one getting the input focus). */ - (BOOL) becomeFirstResponder { - mOwner.backend->WndProc(SCI_SETFOCUS, 1, 0); + mOwner.backend->SetFirstResponder(true); return YES; } @@ -782,7 +782,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) { * The editor is losing the input focus. */ - (BOOL) resignFirstResponder { - mOwner.backend->WndProc(SCI_SETFOCUS, 0, 0); + mOwner.backend->SetFirstResponder(false); return YES; } |