Skip to content

Commit

Permalink
Return focus to graph ignoring child windows. Fixes issue #33
Browse files Browse the repository at this point in the history
  • Loading branch information
neurodroid committed Jan 20, 2016
1 parent 0efc30d commit 5e23d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stimfit/gui/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ void wxStfGraph::LButtonDown(wxMouseEvent& event) {
#else
if (wxWindow::FindFocus()!=(wxWindow*)this)
#endif
SetFocus();
SetFocusIgnoringChildren();

wxClientDC dc(this);
PrepareDC(dc);
Expand Down Expand Up @@ -1216,7 +1216,7 @@ void wxStfGraph::RButtonDown(wxMouseEvent& event) {
#else
if (wxWindow::FindFocus()!=(wxWindow*)this)
#endif
SetFocus();
SetFocusIgnoringChildren();

wxClientDC dc(this);
PrepareDC(dc);
Expand Down

0 comments on commit 5e23d0b

Please sign in to comment.