Skip to content

Commit 89f048e

Browse files
authored
Fix typo
Change `event.return` to `event.repeat`
1 parent 9add0b1 commit 89f048e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/3-event-details/5-keyboard-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ document.addEventListener('keydown', function(event) {
9797

9898
If a key is being pressed for a long enough time, it starts to repeat: the `keydown` triggers again and again, and then when it's released we finally get `keyup`. So it's kind of normal to have many `keydown` and a single `keyup`.
9999

100-
For all repeating keys the event object has `event.return` property set to `true`.
100+
For all repeating keys the event object has `event.repeat` property set to `true`.
101101

102102

103103
## Default actions

0 commit comments

Comments
 (0)