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:
parent
87dbc800c2
commit
92dce738e6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue