From 3ee12082f2476ce5ac6064d57e8f6e4538d26362 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sun, 23 Jan 2022 22:16:26 +0800 Subject: [PATCH] No need to update the pre-edit text --- glfw/cocoa_window.m | 1 - 1 file changed, 1 deletion(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index bb3f24f32..5ec9434c1 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1185,7 +1185,6 @@ is_ascii_control_char(char x) { } if (([self hasMarkedText] || previous_has_marked_text) && !_glfw.ns.text[0]) { // do not pass keys like BACKSPACE while there's pre-edit text, let IME handle it - UPDATE_PRE_EDIT_TEXT; debug_key("Ignoring key press as IME is active and it generated no text\n"); return; }