Skip to content

Commit cb47409

Browse files
authored
Merge pull request #1270 from Justineo/master
Add some backticks to indicate code
2 parents 2fc6cfa + 43d58f0 commit cb47409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v2/guide/events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ Unlike the other modifiers, which are exclusive to native DOM events, the `.once
210210
When listening for keyboard events, we often need to check for common key codes. Vue also allows adding key modifiers for `v-on` when listening for key events:
211211

212212
``` html
213-
<!-- only call vm.submit() when the keyCode is 13 -->
213+
<!-- only call `vm.submit()` when the `keyCode` is 13 -->
214214
<input v-on:keyup.13="submit">
215215
```
216216

217-
Remembering all the keyCodes is a hassle, so Vue provides aliases for the most commonly used keys:
217+
Remembering all the `keyCode`s is a hassle, so Vue provides aliases for the most commonly used keys:
218218

219219
``` html
220220
<!-- same as above -->
@@ -239,7 +239,7 @@ Here's the full list of key modifier aliases:
239239
You can also [define custom key modifier aliases](../api/#keyCodes) via the global `config.keyCodes` object:
240240

241241
``` js
242-
// enable v-on:keyup.f1
242+
// enable `v-on:keyup.f1`
243243
Vue.config.keyCodes.f1 = 112
244244
```
245245

0 commit comments

Comments
 (0)