You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/events.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -286,14 +286,17 @@ For example:
286
286
287
287
> New in 2.5.0+
288
288
289
-
The `.exact` modifier should be used in combination with other system modifiers to indicate that the exact combination of modifiers must be pressed for the handler to fire.
289
+
The `.exact` modifier allows control of the exact combination of system modifiers needed to trigger an event.
290
290
291
291
```html
292
292
<!-- this will fire even if Alt or Shift is also pressed -->
293
293
<button@click.ctrl="onClick">A</button>
294
294
295
-
<!-- this will only fire when only Ctrl is pressed -->
295
+
<!-- this will only fire when Ctrl and no other keys are pressed -->
296
296
<button@click.ctrl.exact="onCtrlClick">A</button>
297
+
298
+
<!-- this will only fire when no system modifiers are pressed -->
0 commit comments