medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Fix CJK IME input caused duplicated first char issue.

Open ulion opened this issue 5 years ago • 1 comments

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
New tests added? not needed
Fixed tickets #1485
License MIT

Description

When do with CJK IME, the keyUp event should not trigger formatBlock, which will result wrong text in the input (with the extra first char there). According to https://developer.mozilla.org/en-US/docs/Web/Events/keyup the event can be judged for the IME input composing cases, so made this PR.

--

Please, don't submit /dist files with your PR!

ulion avatar Mar 03 '19 14:03 ulion

Coverage Status

Coverage decreased (-0.03%) to 94.037% when pulling 0762aafe42cafcaa9ad323b18372217a43bac618 on ulion:fix_cjk_ime into 9156a11407451c0ee2e30d971798d6476de4d354 on yabwe:master.

coveralls avatar Mar 03 '19 15:03 coveralls