Don't focus on open

This commit is contained in:
Andras Schmelczer 2026-03-11 21:59:54 +00:00
parent abe1feef09
commit 0ce211177c

View file

@ -48,7 +48,6 @@ async function main(): Promise<void> {
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.';