Return focus to graph ignoring child windows. Fixes issue #33

parent 0efc30d6
......@@ -1140,7 +1140,7 @@ void wxStfGraph::LButtonDown(wxMouseEvent& event) {
#else
if (wxWindow::FindFocus()!=(wxWindow*)this)
#endif
SetFocus();
SetFocusIgnoringChildren();
wxClientDC dc(this);
PrepareDC(dc);
......@@ -1216,7 +1216,7 @@ void wxStfGraph::RButtonDown(wxMouseEvent& event) {
#else
if (wxWindow::FindFocus()!=(wxWindow*)this)
#endif
SetFocus();
SetFocusIgnoringChildren();
wxClientDC dc(this);
PrepareDC(dc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment