]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
Commit mentioned fix/hack to enable controls
[wxWidgets.git] / src / stc / stc.cpp
index f84f0acfc1e1b5cdd214c7ac19bddf1553eb74f9..abf9d510c9387899414a6500e00e484ebc13f444 100644 (file)
@@ -2356,13 +2356,15 @@ void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) {
 }
 
 
-void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& WXUNUSED(evt)) {
+void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) {
     m_swx->DoLoseFocus();
+    evt.Skip();
 }
 
 
-void wxStyledTextCtrl::OnGainFocus(wxFocusEvent& WXUNUSED(evt)) {
+void wxStyledTextCtrl::OnGainFocus(wxFocusEvent& evt) {
     m_swx->DoGainFocus();
+    evt.Skip();
 }