Clean up WX style issues mentionned in previous commits comments

This commit is contained in:
Pierre Bourdon
2012-08-06 14:21:49 +02:00
parent 0efd4e5c29
commit a2b71f1ed7
2 changed files with 2 additions and 2 deletions

View File

@ -797,7 +797,7 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event))
bool IsHotkey(wxKeyEvent &event, int Id)
{
return (event.GetKeyCode() &&
return (event.GetKeyCode() != WXK_NONE &&
event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] &&
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]);
}