Skip to content

Commit

Permalink
fix(SquirrelInputController): add back the Chrome address bar hack
Browse files Browse the repository at this point in the history
Closes #299
  • Loading branch information
lotem committed Jun 27, 2019
1 parent fa30b42 commit 22ed91e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions SquirrelInputController.m
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,9 @@ -(void)deactivateServer:(id)sender
-(void)commitComposition:(id)sender
{
//NSLog(@"commitComposition:");
// The issue of address bar in Chrome does not exist anymore (version 47)
// - FIXME: chrome's address bar issues this callback when showing suggestions.
/* if ([[sender bundleIdentifier] isEqualToString:@"com.google.Chrome"])
return; */
// - FIXME: chrome's address bar issues this callback when showing suggestions.
if ([[sender bundleIdentifier] isEqualToString:@"com.google.Chrome"])
return;
// force committing existing Rime composition
if (_session && rime_get_api()->commit_composition(_session)) {
[self rimeConsumeCommittedText];
Expand Down

0 comments on commit 22ed91e

Please sign in to comment.