From 876c8ccd01ce30682dd8bd05fb1d37580c917d33 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 21 Mar 2022 21:30:33 +0800 Subject: [PATCH] KeyHandler // Remove a cumbersome & problematic condition. --- Source/Modules/ControllerModules/KeyHandler.mm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Modules/ControllerModules/KeyHandler.mm b/Source/Modules/ControllerModules/KeyHandler.mm index b7308d79..a723c532 100644 --- a/Source/Modules/ControllerModules/KeyHandler.mm +++ b/Source/Modules/ControllerModules/KeyHandler.mm @@ -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; }