From b45167cadc21d193100cafbb9d68e31c2558837f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 13 Feb 2022 23:52:16 +0800 Subject: [PATCH] KeyHandler // Cout when key pressed during candidate selection state. --- Source/Modules/ControllerModules/KeyHandler.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Modules/ControllerModules/KeyHandler.mm b/Source/Modules/ControllerModules/KeyHandler.mm index 9f57243c..9956694b 100644 --- a/Source/Modules/ControllerModules/KeyHandler.mm +++ b/Source/Modules/ControllerModules/KeyHandler.mm @@ -943,6 +943,8 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot"; { NSString *inputText = input.inputText; UniChar charCode = input.charCode; + NSString *char2Print = [NSString stringWithCharacters:&charCode length:1]; + NSLog(@"vChewingCandidateKeyDebug: %@", char2Print); VTCandidateController *gCurrentCandidateController = [self.delegate candidateControllerForKeyHandler:self]; BOOL cancelCandidateKey = (charCode == 27) || (charCode == 8) || [input isDelete];