mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 19:19:41 +03:00
macOS: Clean up any text that may not have been sent when loses focus
This commit is contained in:
parent
f646dfa238
commit
b9a612fb9c
@ -713,6 +713,7 @@ - (void)windowDidResignKey:(NSNotification *)notification
|
|||||||
[window->ns.view unmarkText];
|
[window->ns.view unmarkText];
|
||||||
GLFWkeyevent dummy = {.action = GLFW_RELEASE, .ime_state = GLFW_IME_PREEDIT_CHANGED};
|
GLFWkeyevent dummy = {.action = GLFW_RELEASE, .ime_state = GLFW_IME_PREEDIT_CHANGED};
|
||||||
_glfwInputKeyboard(window, &dummy);
|
_glfwInputKeyboard(window, &dummy);
|
||||||
|
_glfw.ns.text[0] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user