mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Fixed test for termination of a key sequence; the previous error will have seen this reduce all multi-key sequences to just the one, and expand single-key sequences to "probably" two, posting an out-of-bounds code to the machine at completion.
This commit is contained in:
@@ -51,7 +51,7 @@ bool Typer::try_type_next_character() {
|
|||||||
if(!phase_) delegate_->clear_all_keys();
|
if(!phase_) delegate_->clear_all_keys();
|
||||||
else {
|
else {
|
||||||
delegate_->set_key_state(sequence[phase_ - 1], true);
|
delegate_->set_key_state(sequence[phase_ - 1], true);
|
||||||
return sequence[phase_] == CharacterMapper::EndSequence;
|
return sequence[phase_] != CharacterMapper::EndSequence;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user