Skip to content

Commit 505f9b1

Browse files
douglas-hirshphanan
authored andcommitted
Use v-on in all examples for consistency. (#2425)
1 parent 34df294 commit 505f9b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/v2/guide/events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,10 @@ For example:
290290

291291
```html
292292
<!-- Alt + C -->
293-
<input @keyup.alt.67="clear">
293+
<input v-on:keyup.alt.67="clear">
294294

295295
<!-- Ctrl + Click -->
296-
<div @click.ctrl="doSomething">Do something</div>
296+
<div v-on:click.ctrl="doSomething">Do something</div>
297297
```
298298

299299
<p class="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. If you do want such behaviour, use the `keyCode` for `ctrl` instead: `keyup.17`.</p>
@@ -306,13 +306,13 @@ The `.exact` modifier allows control of the exact combination of system modifier
306306

307307
``` html
308308
<!-- this will fire even if Alt or Shift is also pressed -->
309-
<button @click.ctrl="onClick">A</button>
309+
<button v-on:click.ctrl="onClick">A</button>
310310

311311
<!-- this will only fire when Ctrl and no other keys are pressed -->
312-
<button @click.ctrl.exact="onCtrlClick">A</button>
312+
<button v-on:click.ctrl.exact="onCtrlClick">A</button>
313313

314314
<!-- this will only fire when no system modifiers are pressed -->
315-
<button @click.exact="onClick">A</button>
315+
<button v-on:click.exact="onClick">A</button>
316316
```
317317

318318
### Mouse Button Modifiers

0 commit comments

Comments
 (0)