aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm4
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;
}