Don't focus on open
This commit is contained in:
parent
abe1feef09
commit
0ce211177c
1 changed files with 0 additions and 7 deletions
|
|
@ -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.';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue