This commit is contained in:
Kovid Goyal 2021-11-28 21:21:35 +05:30
commit 5e78b1c23e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -864,6 +864,12 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
showCursor(window);
_glfwInputWindowFocus(window, false);
// IME is cancelled when losing the focus
if ([window->ns.view hasMarkedText]) {
[window->ns.view unmarkText];
GLFWkeyevent dummy = {.action = GLFW_RELEASE, .ime_state = GLFW_IME_PREEDIT_CHANGED};
_glfwInputKeyboard(window, &dummy);
}
}
- (void)windowDidChangeScreen:(NSNotification *)notification