Skip to content

Commit

Permalink
fix issues#74
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Feb 26, 2020
1 parent 6997aa5 commit eff88cb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/InputController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,9 @@ - (BOOL)onKeyEvent:(NSEvent *)event client:(id)sender {
}

if (keyCode == KEY_ESC) {
if (hasBufferedText) {
[self cancelComposition];
[self setComposedBuffer:@""];
[self setOriginalBuffer:@""];
[self commitComposition:sender];
}
return NO;
[self cancelComposition];
[self commitComposition:sender];
return YES;
}

char ch = [characters characterAtIndex:0];
Expand Down

0 comments on commit eff88cb

Please sign in to comment.