docs(web): a few comments

This commit is contained in:
jahorton 2024-02-15 14:22:18 +07:00
parent 9bc01bee5f
commit d2719f028e

View file

@ -29,6 +29,8 @@ export class ContextHost extends Mock {
const preInput = transcription.preInput;
// If our saved state matches the `preInput` from the incoming transcription, just reuse its transform.
// Will generally not match during multitap operations, though.
//
// Helps ensure backspaces pass through even if we don't currently have text available in context for them.
if(preInput.text == savedState.text && preInput.selStart == savedState.selStart && preInput.selEnd == savedState.selEnd) {
transform = transcription.transform;
}