Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix keyboard event handling during composition#2

Merged
muan merged 4 commits intomasterfrom
composition
Dec 20, 2018
Merged

Fix keyboard event handling during composition#2
muan merged 4 commits intomasterfrom
composition

Conversation

@muan
Copy link
Contributor

@muan muan commented Dec 18, 2018

This is to fix unintentional interaction during text compositions (IME), like this:

After fix:


❤️ https://github.com/javan/input-inspector

muan added 3 commits December 18, 2018 14:36
keydown and composition events get triggered in different orders across browsers
so we can't rely on the 'mid composition' state and would need to clear
selection to prevent triggering activation unintentionally
@muan muan requested a review from a team December 18, 2018 20:11
Copy link
Contributor

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Awesome!!

@latentflip
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants