Skip to content

Commit

Permalink
Reduce time to block enter after composition on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Apr 7, 2022
1 parent b415b4e commit f7e5882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.ts
Expand Up @@ -156,7 +156,7 @@ export class InputState {
// compositionend and keydown events are sometimes emitted in the
// wrong order. The key event should still be ignored, even when
// it happens after the compositionend event.
if (browser.safari && Date.now() - this.compositionEndedAt < 500) {
if (browser.safari && Date.now() - this.compositionEndedAt < 100) {
this.compositionEndedAt = 0
return true
}
Expand Down

0 comments on commit f7e5882

Please sign in to comment.