From 57bea57f5ec6ba7240e494f647df053df300afab Mon Sep 17 00:00:00 2001 From: Takahiro Shizuki Date: Mon, 10 Jan 2022 09:09:13 -0800 Subject: Fix T94434: Windows IME Pinyin Forward Slash Treat "/" as a key that should be evaluated by the Win IME system when the input language is Chinese. This fixes a duplication of the input character and results in the expected output of a Chinese wide comma. See D13771 for more details. Differential Revision: https://developer.blender.org/D13771 Reviewed by Brecht Van Lommel --- intern/ghost/intern/GHOST_ImeWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_ImeWin32.cpp b/intern/ghost/intern/GHOST_ImeWin32.cpp index 47b5f5688df..d1fc80adf56 100644 --- a/intern/ghost/intern/GHOST_ImeWin32.cpp +++ b/intern/ghost/intern/GHOST_ImeWin32.cpp @@ -106,7 +106,7 @@ bool GHOST_ImeWin32::IsImeKeyEvent(char ascii) if (IsLanguage(IMELANG_JAPANESE) && (ascii >= ' ' && ascii <= '~')) { return true; } - else if (IsLanguage(IMELANG_CHINESE) && ascii && strchr("!\"$'(),.:;<>?[\\]^_`", ascii)) { + else if (IsLanguage(IMELANG_CHINESE) && ascii && strchr("!\"$'(),.:;<>?[\\]^_`/", ascii)) { return true; } } -- cgit v1.2.3