From 59a347352073b30be444683019b14882cbab441b Mon Sep 17 00:00:00 2001 From: Sharon Lau Date: Wed, 9 Mar 2022 23:09:08 +0800 Subject: [PATCH 1/2] Fix typo: missing punctuation mark This fix adds a period at the end of the sentence. --- src/guide/essentials/event-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/essentials/event-handling.md b/src/guide/essentials/event-handling.md index 1e1bb51ef9..001845c020 100644 --- a/src/guide/essentials/event-handling.md +++ b/src/guide/essentials/event-handling.md @@ -331,7 +331,7 @@ For example: ``` ::: tip -Note that modifier keys are different from regular keys and when used with `keyup` events, they have to be pressed when the event is emitted. In other words, `keyup.ctrl` will only trigger if you release a key while holding down `ctrl`. It won't trigger if you release the `ctrl` key alone +Note that modifier keys are different from regular keys and when used with `keyup` events, they have to be pressed when the event is emitted. In other words, `keyup.ctrl` will only trigger if you release a key while holding down `ctrl`. It won't trigger if you release the `ctrl` key alone. ::: ### `.exact` Modifier From 57732578049483da28b479ac859828e4b27b602c Mon Sep 17 00:00:00 2001 From: Sharon Lau Date: Wed, 9 Mar 2022 23:18:10 +0800 Subject: [PATCH 2/2] Fix typo: remove unnecessary backticks --- src/guide/essentials/event-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/essentials/event-handling.md b/src/guide/essentials/event-handling.md index 001845c020..5956e9fa11 100644 --- a/src/guide/essentials/event-handling.md +++ b/src/guide/essentials/event-handling.md @@ -194,7 +194,7 @@ Sometimes we also need to access the original DOM event in an inline handler. Yo ```js function warn(message, event) { - // `now we have access to the native event` + // now we have access to the native event if (event) { event.preventDefault() }