From 1da4efa50a5b989115292ea66befea52c73b8b2d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 30 Sep 2013 14:32:42 +1000 Subject: Added FocusIn and FocusOut notification events (SCN_FOCUSIN/SCN_FOCUSOUT) to be used in preference to the SCEN_SETFOCUS and SCEN_KILLFOCUS command events. --- src/Editor.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3