diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index c2091b7a3..468eb9854 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -713,6 +713,7 @@ - (void)windowDidResignKey:(NSNotification *)notification [window->ns.view unmarkText]; GLFWkeyevent dummy = {.action = GLFW_RELEASE, .ime_state = GLFW_IME_PREEDIT_CHANGED}; _glfwInputKeyboard(window, &dummy); + _glfw.ns.text[0] = 0; } }