Skip to content

Fix keyboard event handling during composition - #2

Merged
muan merged 4 commits into
masterfrom
composition
Dec 20, 2018
Merged

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

Conversation

@muan

@muan muan commented Dec 18, 2018

Copy link
Copy Markdown
Contributor

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

@keithamus keithamus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome!!

@latentflip

Copy link
Copy Markdown

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