Update preedit text with markedText
This fixes the preedit text being cleared when using shortcut keys to switch candidate text in the input state.
This commit is contained in:
parent
c0be0f74d8
commit
fbaf3e2f49
@ -1401,7 +1401,7 @@ is_ascii_control_char(char x) {
|
||||
}
|
||||
if (!in_key_handler) {
|
||||
debug_key("updating IME text in kitty from setMarkedText called from event loop: %s\n", _glfw.ns.text);
|
||||
GLFWkeyevent glfw_keyevent = {.text=_glfw.ns.text, .ime_state = GLFW_IME_PREEDIT_CHANGED};
|
||||
GLFWkeyevent glfw_keyevent = {.text=[[markedText string] UTF8String], .ime_state = GLFW_IME_PREEDIT_CHANGED};
|
||||
_glfwInputKeyboard(window, &glfw_keyevent);
|
||||
_glfw.ns.text[0] = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user