From 464a54f98a12733d00a662329022e51e04d84e0e Mon Sep 17 00:00:00 2001 From: zonble Date: Fri, 28 Jan 2022 19:23:55 +0800 Subject: [PATCH] Also uses the backspace key to cancel candidate in smart BPMF mode. Going and Chewing also use backspace to do this. --- Source/KeyHandler.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/KeyHandler.mm b/Source/KeyHandler.mm index 15d26dfa..7e8e1823 100644 --- a/Source/KeyHandler.mm +++ b/Source/KeyHandler.mm @@ -833,8 +833,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot UniChar charCode = input.charCode; VTCandidateController *gCurrentCandidateController = [self.delegate candidateControllerForKeyHandler:self]; - BOOL cancelCandidateKey = (charCode == 27) || [input isDelete] || - ((_inputMode == kPlainBopomofoModeIdentifier) && (charCode == 8)); + BOOL cancelCandidateKey = (charCode == 27) || (charCode == 8) || [input isDelete]; if (cancelCandidateKey) { if (_inputMode == kPlainBopomofoModeIdentifier) {