KeyHandler // +NSLog: "Still Nothing" (Rebased).

- This one is the final input quality check step prior to the language parsing process. It can block trash data from being passed to the Input Method Kit.
This commit is contained in:
ShikiSuen 2022-03-21 21:30:33 +08:00
parent d91e220b14
commit d64d1af8a3
1 changed files with 3 additions and 3 deletions

View File

@ -592,10 +592,10 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
} }
} }
// still nothing, then we update the composing buffer (some app has // 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)
// strange behavior if we don't do this, "thinking" the key is not // 砍掉這一段會導致「F1-F12 按鍵干擾組字區」的問題。暫時只能先恢復這段,且補上偵錯彙報機制,方便今後排查故障。
// actually consumed)
if ([state isKindOfClass:[InputStateNotEmpty class]] || !_bpmfReadingBuffer->isEmpty()) { if ([state isKindOfClass:[InputStateNotEmpty class]] || !_bpmfReadingBuffer->isEmpty()) {
[IME prtDebugIntel:[NSString stringWithFormat:@"Blocked data: charCode: %c, keyCode: %c", charCode, input.keyCode]];
[IME prtDebugIntel:@"A9BFF20E"]; [IME prtDebugIntel:@"A9BFF20E"];
errorCallback(); errorCallback();
stateCallback(state); stateCallback(state);