From d2719f028efe36afd5ebe000ca011cd2792bbd4c Mon Sep 17 00:00:00 2001 From: jahorton Date: Thu, 15 Feb 2024 14:22:18 +0700 Subject: [PATCH] docs(web): a few comments --- web/src/app/webview/src/contextManager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/app/webview/src/contextManager.ts b/web/src/app/webview/src/contextManager.ts index 1f4f09935f..b887bac15c 100644 --- a/web/src/app/webview/src/contextManager.ts +++ b/web/src/app/webview/src/contextManager.ts @@ -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; }