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
This commit is contained in:
Takahiro Shizuki 2022-01-10 09:09:13 -08:00 committed by Harley Acheson
parent 1a27d20df3
commit 57bea57f5e
Notes: blender-bot 2023-02-14 08:25:14 +01:00
Referenced by issue #94434, A happen appearing a letter "/、" not "、" when input "/" key with Microsoft PinYin. [Windows]
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}