Skip to content

Commit

Permalink
Follow up on code review for ime change (#595)
Browse files Browse the repository at this point in the history
Forgot to add this change to previous pull request for IME fix.
  • Loading branch information
richard-to authored Jul 10, 2024
1 parent 3ac96ac commit de730b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mesop/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ export class InputComponent {
)
.subscribe((event) => this.onInputDebounced(event));
// See keyDown event for explanation for why we have a special case for Safari.
//
// Chrome's user-agent basically spoofs other browsers and includes Safari, so we
// need to explicitly look for the absence of it.
if (
navigator.userAgent.indexOf('Safari') > -1 &&
navigator.userAgent.indexOf('Chrome') === -1
navigator.userAgent.includes('Safari') &&
!navigator.userAgent.includes('Chrome')
) {
this.expectedIsComposingCount = 2;
this.isComposingCount = 2;
Expand Down

0 comments on commit de730b6

Please sign in to comment.