Ensure that the wxSTC gets the focus when clicked.
#if'd out my wxPopupWindow meanderings and just use a simple wxListBox for the AutoComplete window. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1877,6 +1877,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
|
||||
}
|
||||
|
||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||
SetFocus();
|
||||
wxPoint pt = evt.GetPosition();
|
||||
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
||||
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
||||
|
Reference in New Issue
Block a user