Fixes a minor bug on handling backspace key.
This commit is contained in:
parent
d29341ebae
commit
2880394812
|
@ -720,7 +720,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
|
||||||
_bpmfReadingBuffer->backspace();
|
_bpmfReadingBuffer->backspace();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_builder->length()) {
|
if (_bpmfReadingBuffer->isEmpty() && !_builder->length()) {
|
||||||
InputStateEmptyIgnoringPreviousState *empty = [[InputStateEmptyIgnoringPreviousState alloc] init];
|
InputStateEmptyIgnoringPreviousState *empty = [[InputStateEmptyIgnoringPreviousState alloc] init];
|
||||||
stateCallback(empty);
|
stateCallback(empty);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue