Skip to content

Commit 0cbdb59

Browse files
authored
Fix typo in README.md regarding preventDefault (#821)
2 parents 9275516 + 69971b1 commit 0cbdb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/keyboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ createShortcut(
169169

170170
### Preventing default
171171

172-
When `preventDefault` is `true`, `e.preventDefault()` will be called not only on the keydown event that have triggered the callback, but it will **optimistically** also prevend the default behavior of every previous keydown that will have the possibility to lead to the shotcut being pressed.
172+
When `preventDefault` is `true`, `e.preventDefault()` will be called not only on the keydown event that has triggered the callback, but it will **optimistically** also prevent the default behavior of every previous keydown that will have the possibility to lead to the shortcut being pressed.
173173

174174
E.g. when listening for `Control + Shift + A`, all three keydown events will be prevented.
175175

0 commit comments

Comments
 (0)