From 16d3e82515b978854a3e4ecc899353e2dae2047c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 Jan 2022 14:50:12 +0530 Subject: [PATCH] Add debug output when ignoring key press during IME --- glfw/cocoa_window.m | 1 + 1 file changed, 1 insertion(+) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index ee49e677f..18ec0af4a 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1181,6 +1181,7 @@ 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 + debug_key("Ignoring key press as IME is active and it generated no text\n"); return; } }