diff options
author | Neil <nyamatongwe@gmail.com> | 2013-09-30 14:32:42 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-09-30 14:32:42 +1000 |
commit | 973d219c3051089dd2ccab7785dc7b8ac9334105 (patch) | |
tree | 9715b0beb4120f643074bffd1f1ee0c641f6a619 /src | |
parent | f38c02c44304e40b1a406c8ce21173a0568a99a0 (diff) | |
download | scintilla-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')
-rw-r--r-- | src/Editor.cxx | 6 |
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; |