KeyHandler // Remove a cumbersome & problematic condition.

This commit is contained in:
ShikiSuen 2022-03-21 21:30:33 +08:00
parent 3eb3f4af92
commit 876c8ccd01
1 changed files with 7 additions and 7 deletions

View File

@ -594,13 +594,13 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
// still nothing, then we update the composing buffer (some app has
// strange behavior if we don't do this, "thinking" the key is not
// actually consumed)
if ([state isKindOfClass:[InputStateNotEmpty class]] || !_bpmfReadingBuffer->isEmpty()) {
[IME prtDebugIntel:@"A9BFF20E"];
errorCallback();
stateCallback(state);
return YES;
}
// actually consumed) // 下面這幾行反而會製造問題,所以威注音禁用之。
// if ([state isKindOfClass:[InputStateNotEmpty class]] || !_bpmfReadingBuffer->isEmpty()) {
// [IME prtDebugIntel:@"A9BFF20E"];
// errorCallback();
// stateCallback(state);
// return YES;
// }
return NO;
}