Page MenuHome

Fix T94434: Windows IME Pinyin Forward Slash
ClosedPublic

Authored by Takahiro Shizuki (sntulix) on Jan 8 2022, 4:58 AM.

Details

Summary

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.


When using Windows and entering Chinese characters using the Pinyin IME, pressing forward slash should result in a "、", Unicode character "Ideographic Comma" (U+3001, 逗號/逗号 dòu hào) - basically a wide comma. However in Blender we are getting "/、".

When entering text with IME we have to send some keypresses to the IME while others not. If we do not filter them like this we will get duplicated characters. Since D11929: IME Win32: Fix Duplicated Initial Character we do this with IsImeKeyEvent. This patch simply adds forward slash to the list of keypresses to send to IME.

Diff Detail

Repository
rB Blender

Event Timeline

Takahiro Shizuki (sntulix) edited the summary of this revision. (Show Details)
Harley Acheson (harley) edited the summary of this revision. (Show Details)Jan 8 2022, 9:22 PM
This revision is now accepted and ready to land.Jan 8 2022, 9:31 PM

@Takahiro Shizuki (sntulix) - Thank you very much for the bug report and this patch.

I'll land this one.