mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 08:56:14 +01:00
Update tutorial text.md (#6329)
The component referenced in text.md is no longer on line 33 of the provided code.
This commit is contained in:
parent
0a3be1d041
commit
19e4a4fdf3
@ -4,7 +4,7 @@ title: <svelte:window>
|
||||
|
||||
Just as you can add event listeners to any DOM element, you can add event listeners to the `window` object with `<svelte:window>`.
|
||||
|
||||
On line 33, add the `keydown` listener:
|
||||
On line 11, add the `keydown` listener:
|
||||
|
||||
```html
|
||||
<svelte:window on:keydown={handleKeydown}/>
|
||||
|
Loading…
Reference in New Issue
Block a user