Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Add tips for CJK IME user story #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vvakame
Copy link

@vvakame vvakame commented Jan 22, 2020

refs #304
add setting example for CJK (Japanese) IME user.

sorry, I can't preview storybook in my local env... 😿

$ node -v
v12.14.1
$ npm -v
6.13.4
$ npm run storybook
→loading assets eternally...

<div>
add <code>{"newChipKeys={[]}"}</code> to property.
default is <code>{"newChipKeys={['Enter']}"}</code>.
prevent onChange event when IME is processing key input.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we prevent this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when event.keyCode 13, IME is not processing key input.
when 229, IME is processing key input.
both situations have event.key === 'Enter'. so newChipKeys={[]} is prevent event when IME is processing key input.

My english isn't as good as Japanese, so I'm glad if you can fix it so that it can be understandable. 😺

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants