FrameTools: unbind KEY_DOWN handler when game stops

Fixes issue 10162: Cannot type window text fields in macOS builds[0]

[0]: https://bugs.dolphin-emu.org/issues/10162
This commit is contained in:
Michael Maltese 2017-04-02 19:17:35 -07:00
parent fd7f7c5541
commit f1dfa7933c
1 changed files with 3 additions and 0 deletions

View File

@ -904,6 +904,9 @@ void CFrame::OnStopped()
// Destroy the renderer frame when not rendering to main
m_RenderParent->Unbind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this);
// Keyboard
wxTheApp->Unbind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
// Mouse
wxTheApp->Unbind(wxEVT_RIGHT_DOWN, &CFrame::OnMouse, this);
wxTheApp->Unbind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);