Make WordPress Core

Opened 19 months ago

Last modified 18 months ago

#57294 new defect (bug)

CodeMirror: Text disappears when candidate is confirmed in IME composition

Reported by: wildworks's profile wildworks Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


In input modes with IME compositions, such as Japanese, the text disappears when a candidate is confirmed. This occurs when it is in a bracket and indented.

For example, enter "あああ" as follows:

.test {

Then press Enter to confirm your entry and the text will disappear:

.test {

Perhaps this problem is similar to one that has occurred in the past with the Gutenberg project. I believe that the Enter key to confirm a character is being detected incorrectly, causing unintended behavior.

The IME composition is described in detail in the following tracking issue.

Attachments (2)

032859dcd9d06d8103753e19f01635ec.mp4 (439.1 KB) - added by wildworks 19 months ago.
japanese-input-disappears-after-tab-indentation..mp4 (200.1 KB) - added by wildworks 19 months ago.

Download all attachments as: .zip

Change History (4)

#1 @wildworks
19 months ago

I did a little more research and found that text entered in IME mode disappears if it is immediately after a tab indent.
For space indentation, the problem doesn't occur.

You can see this in the attached japanese-input-disappears-after-tab-indentation..mp4.

#2 @wildworks
18 months ago

Perhaps it is a problem with CodeMirror itself. I have submitted an issue.

Note: See TracTickets for help on using tickets.