Merge pull request #838 from Steelskin/fix-ret-value-filter-event

Use constant aliases in MainFrame::FilterEvent()
This commit is contained in:
Zach Bacon 2021-08-10 23:41:52 -04:00 committed by GitHub
commit 157277e028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -875,7 +875,7 @@ int MainFrame::FilterEvent(wxEvent& event)
wxCommandEvent evh(wxEVT_COMMAND_MENU_SELECTED, accels[i].GetCommand());
evh.SetEventObject(this);
GetEventHandler()->ProcessEvent(evh);
return true;
return wxEventFilter::Event_Processed;
}
}
else if (event.GetEventType() == wxEVT_SDLJOY && !menus_opened && !dialog_opened)
@ -894,11 +894,11 @@ int MainFrame::FilterEvent(wxEvent& event)
wxCommandEvent evh(wxEVT_COMMAND_MENU_SELECTED, accels[i].GetCommand());
evh.SetEventObject(this);
GetEventHandler()->ProcessEvent(evh);
return true;
return wxEventFilter::Event_Processed;
}
}
}
return -1;
return wxEventFilter::Event_Skip;
}
wxString MainFrame::GetGamePath(wxString path)