[Bf-blender-cvs] [57bea57f5ec] master: Fix T94434: Windows IME Pinyin Forward Slash
Takahiro Shizuki
noreply at git.blender.org
Mon Jan 10 18:10:19 CET 2022
Commit: 57bea57f5ec6ba7240e494f647df053df300afab
Author: Takahiro Shizuki
Date: Mon Jan 10 09:09:13 2022 -0800
Branches: master
https://developer.blender.org/rB57bea57f5ec6ba7240e494f647df053df300afab
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
===================================================================
M intern/ghost/intern/GHOST_ImeWin32.cpp
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list