mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue