mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-04 01:57:54 +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:
parent
dd4bc87d52
commit
4ecd093891
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user