Also uses the backspace key to cancel candidate in smart BPMF mode.

Going and Chewing also use backspace to do this.
This commit is contained in:
zonble 2022-01-28 19:23:55 +08:00
parent c3304bc5f7
commit 464a54f98a
1 changed files with 1 additions and 2 deletions

View File

@ -833,8 +833,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
UniChar charCode = input.charCode; UniChar charCode = input.charCode;
VTCandidateController *gCurrentCandidateController = [self.delegate candidateControllerForKeyHandler:self]; VTCandidateController *gCurrentCandidateController = [self.delegate candidateControllerForKeyHandler:self];
BOOL cancelCandidateKey = (charCode == 27) || [input isDelete] || BOOL cancelCandidateKey = (charCode == 27) || (charCode == 8) || [input isDelete];
((_inputMode == kPlainBopomofoModeIdentifier) && (charCode == 8));
if (cancelCandidateKey) { if (cancelCandidateKey) {
if (_inputMode == kPlainBopomofoModeIdentifier) { if (_inputMode == kPlainBopomofoModeIdentifier) {