Ignore hotkeys if the game has not started.

This commit is contained in:
skidau 2015-02-04 18:06:20 +11:00
parent b9fb6ad3e8
commit fc8ea9c3b3
1 changed files with 3 additions and 0 deletions

View File

@ -947,6 +947,9 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event))
static bool IsHotkey(wxKeyEvent &event, int Id, bool keyUp = false)
{
if (Core::GetState() == Core::CORE_UNINITIALIZED)
return false;
// Input event hotkey
if (event.GetKeyCode() == WXK_NONE)
{