Skip to content

Commit 0486052

Browse files
authored
fix: accept autocompletions with Tab key without losing focus (sveltejs#346)
1 parent 5a85062 commit 0486052

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/routes/tutorial/[slug]/Editor.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@
206206
<div
207207
class="container"
208208
bind:this={container}
209-
on:keydown={(e) => {
210-
if (e.key === 'Tab') {
211-
preserve_editor_focus = false;
212-
213-
setTimeout(() => {
214-
preserve_editor_focus = true;
215-
}, 200);
216-
}
217-
}}
218209
on:focusin={() => {
219210
clearTimeout(remove_focus_timeout);
220211
preserve_editor_focus = true;

0 commit comments

Comments
 (0)