From f1dfa7933c94d96a79913480e905501a7b29bfa9 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sun, 2 Apr 2017 19:17:35 -0700 Subject: [PATCH] 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 --- Source/Core/DolphinWX/FrameTools.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 218556d739..58edc02c30 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -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);