Fix typo in how_to_bind_keydown_events_to_specific_keys.md (#586)

Changes `whenver` -> `whenever`
This commit is contained in:
Johnathan Stevers 2025-02-03 14:01:09 -06:00 committed by GitHub
parent 6b726a340e
commit 284c42d981
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ The [`data-on`](/reference/attribute_plugins#data-on) attribute allows us to att
## Goal
Our goal is to show an alert whenver the user presses the `Enter` key, or a combination of the `Ctrl` and `L` keys.
Our goal is to show an alert whenever the user presses the `Enter` key, or a combination of the `Ctrl` and `L` keys.
## Demo
@ -50,4 +50,4 @@ Sometimes, we may want to prevent the default behavior of the keydown event, suc
## Conclusion
The `evt` variable is always available in `data-on` expressions. In the case of the [`keydown`](https://developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event) event, which is a [`KeyboardEvent`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent), we can perform actions conditionally, based on any of the event's properties.
The `evt` variable is always available in `data-on` expressions. In the case of the [`keydown`](https://developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event) event, which is a [`KeyboardEvent`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent), we can perform actions conditionally, based on any of the event's properties.