microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.28k stars 6.49k forks source link

Quick Accent: Input errors when used with Chinese, Japanese, & Korean IME #33244

Open ldeng-ustc opened 4 months ago

ldeng-ustc commented 4 months ago

Microsoft PowerToys version

0.70.0

Installation method

GitHub, PowerToys auto-update

Running as admin

None

Area(s) with issue?

Quick Accent

Steps to reproduce

  1. Turn on Quick Accent in Powertoys, Use space as activation key, and switch IME to Microsoft Pinyin ( which is default simplified Chinese IME on Windows).
  2. Rapidly alternating between pressing a character key and space key. ( Such as, press [d] [space] [d] [space] [d] [space] ... as fast as you can, it simulate a fast input scenario. )

✔️ Expected Behavior

Every time you press [d], the IME shows candidates, and when you press [space], first candidate will be input. ( For key [d], the character your input is "的" in normal. ) So, you can get a series of identical Chinese characters, like:

的的的的的的的的的的的的的的的的的的的的的的的的的的的的的

❌ Actual Behavior

Quick Accent will "eat" some [space], and release them after a short delay. So you will see consecutive Spaces and the same number of Chinese characters pop up at the same time, as follows:

的的的的的的  得到的的的    顶顶顶顶的的的的的的的    顶顶顶顶

Note that combinations such as " 得到" and " 顶顶顶顶" pop up together after entering the spaces that follow them, which is not possible in normal input, because the leading spaces will not trigger the IME candidates box, just show immediately.

If turn off Quick Accent, or use Left/Right as activation key, everything is OK.

Other Software

Windows version: 22H2 (19045.4474)

Related issues

It seems this problem also occurs in other languages IME, such as Japanese (#22452, #23132) and Korean(#23464).

30716 also report that Quick Accent will "eat" some space, and #23464 reports the leading spaces problem.

Possible solutions

Is there a way to detect IME status? If so, trigger quick accent only when typing English or Latin characters maybe a good choice.

github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ldeng-ustc commented 4 months ago

I also noticed that it could make the IME keep the candidate box displayed while typing a spaces into the input field by "Press d-> Press [space] (imediately after press [d], but hold [d] meanwhile) -> Release [d] and [space] at the same time". And if you press another space after taht, the first space disappears when the candidate is selected, so a space is missing. This may indicate that the bug is caused by the IME and the Quick Accent firing at the same time, and the Quick Accent releasing spaces is not detected by the IME.