Skip to content

Comments

Prevent loosing focus after a char composition ended by Tab key. Fix #1341#1349

Merged
rauchg merged 1 commit intovercel:masterfrom
chabou:prevent_double_onkeydown
Jan 7, 2017
Merged

Prevent loosing focus after a char composition ended by Tab key. Fix #1341#1349
rauchg merged 1 commit intovercel:masterfrom
chabou:prevent_double_onkeydown

Conversation

@chabou
Copy link
Contributor

@chabou chabou commented Jan 6, 2017

When a char composition ends with a Tab key, after a first onKeyDown_(e) call, another one occurs with a different keycode (192) but the same timestamp and same key (Tab).
This second onKeyDown_ event cause a blur and Term loose its focus.

Notice: A breakpoint in onTextInput_ prevent this second event. Race condition ?

@rauchg rauchg merged commit 1b6d925 into vercel:master Jan 7, 2017
@rauchg
Copy link
Member

rauchg commented Jan 7, 2017

Really appreciate your time debugging this @chabou

@chabou chabou deleted the prevent_double_onkeydown branch January 7, 2017 09:23
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.

2 participants