Fixes a minor bug on handling backspace key.

This commit is contained in:
zonble 2022-02-03 01:49:41 +08:00
parent d29341ebae
commit 2880394812
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
_bpmfReadingBuffer->backspace();
}
if (!_builder->length()) {
if (_bpmfReadingBuffer->isEmpty() && !_builder->length()) {
InputStateEmptyIgnoringPreviousState *empty = [[InputStateEmptyIgnoringPreviousState alloc] init];
stateCallback(empty);
} else {