aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm23
1 files changed, 2 insertions, 21 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index ce0123982..3bdc9646a 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -1014,29 +1014,10 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
}
break;
}
- }
-}
-
-//--------------------------------------------------------------------------------------------------
-
-/**
- * Method receives notifications from Scintilla for gaining and losing focus and for changes.
- * A delegate can be set to receive all notifications.
- */
-- (void) command:(int)command idFrom:(int)idFrom
-{
- if ((mDelegate != nil) && ([(id)mDelegate respondsToSelector:@selector(command:ctrlID:)]))
- {
- [mDelegate command:command idFrom:idFrom];
- }
-
- // Notifications for the editor itself.
- switch (command)
- {
- case SCEN_KILLFOCUS:
+ case SCN_FOCUSOUT:
[self sendNotification: NSTextDidEndEditingNotification];
break;
- case SCEN_SETFOCUS: // Nothing to do for now.
+ case SCN_FOCUSIN: // Nothing to do for now.
break;
}
}