Missed gain canvas focus for Win7 wheel support
This commit is contained in:
parent
baa7501711
commit
ce697c610d
|
@ -194,6 +194,11 @@ void GainCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
|||
void GainCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||
InteractiveCanvas::mouseTracker.OnMouseEnterWindow(event);
|
||||
SetCursor(wxCURSOR_CROSS);
|
||||
#ifdef _WIN32
|
||||
if (wxGetApp().getAppFrame()->canFocus()) {
|
||||
this->SetFocus();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue