From 0ce211177ce63f27a786c85e04185fe3f668a426 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 11 Mar 2026 21:59:54 +0000 Subject: [PATCH] Don't focus on open --- examples/website/src/index.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/website/src/index.ts b/examples/website/src/index.ts index 01edfd8..232e843 100644 --- a/examples/website/src/index.ts +++ b/examples/website/src/index.ts @@ -48,7 +48,6 @@ async function main(): Promise { loadSample(); updateMergedText(); - focusTextArea(leftTextArea); } // Edit the instructions to generate example edits @@ -212,12 +211,6 @@ function autoResize(textarea: HTMLTextAreaElement): void { textarea.style.height = textarea.scrollHeight + 'px'; } -function focusTextArea(textarea: HTMLTextAreaElement): void { - textarea.focus(); - textarea.selectionStart = 0; - textarea.selectionEnd = 0; -} - main().catch((error) => { document.body.textContent = 'Failed to load the application. Please ensure your browser supports WebAssembly.';