aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-09-30 14:32:42 +1000
committerNeil <nyamatongwe@gmail.com>2013-09-30 14:32:42 +1000
commit973d219c3051089dd2ccab7785dc7b8ac9334105 (patch)
tree9715b0beb4120f643074bffd1f1ee0c641f6a619 /src/Editor.cxx
parentf38c02c44304e40b1a406c8ce21173a0568a99a0 (diff)
downloadscintilla-mirror-973d219c3051089dd2ccab7785dc7b8ac9334105.tar.gz
Added FocusIn and FocusOut notification events (SCN_FOCUSIN/SCN_FOCUSOUT) to be
used in preference to the SCEN_SETFOCUS and SCEN_KILLFOCUS command events.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index c990af34b..8fda6b9ba 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4414,7 +4414,11 @@ void Editor::DelCharBack(bool allowLineStartDeletion) {
ShowCaretAtCurrentPosition();
}
-void Editor::NotifyFocus(bool) {}
+void Editor::NotifyFocus(bool focus) {
+ SCNotification scn = {};
+ scn.nmhdr.code = focus ? SCN_FOCUSIN : SCN_FOCUSOUT;
+ NotifyParent(scn);
+}
void Editor::SetCtrlID(int identifier) {
ctrlID = identifier;