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 | 1da4efa50a5b989115292ea66befea52c73b8b2d (patch) | |
tree | a827a78e2ee3773983019fea414af8702d7c7eda /src | |
parent | ce0710d47a994b0d174b3275641a074d20cc31a8 (diff) | |
download | scintilla-mirror-1da4efa50a5b989115292ea66befea52c73b8b2d.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; |