Skip to content

Add .once modifier description for v-on #627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 2, 2016
Merged

Conversation

KingMario
Copy link
Contributor

@KingMario KingMario commented Dec 2, 2016

Add .once modifier description for v-on and modifiers in render functions

Add `.once` description modifier for v-on and modifiers in render functions
@KingMario KingMario changed the title Add .once description modifier for v-on Add .once modifier description for v-on Dec 2, 2016
@chrisvfritz
Copy link
Contributor

Thanks @KingMario! I moved things around a bit (trying to keep render function stuff collected in that section), but this looks really good!

@chrisvfritz chrisvfritz merged commit 6cfa669 into vuejs:master Dec 2, 2016
@KingMario KingMario deleted the patch-1 branch December 2, 2016 17:50
| `.prevent` | `event.preventDefault()` |
| `.self` | `if (event.target !== event.currentTarget) return` |
| Keys:<br>`.enter`, `.13` | `if (event.keyCode !== 13) return` (change `13` to [another key code](keycode.info) for other key modifiers) |
| Modifiers Keys:<br>`.ctrl`, `.alt`, `.shift`, `.meta` | `if (!event.ctrlKey) return` (change `ctrlKey` to `altKey`, `shiftKey`, or `metaKey`, respectively) |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifiers Keys or Modifier Keys

| `.stop` | `event.stopPropagation()` |
| `.prevent` | `event.preventDefault()` |
| `.self` | `if (event.target !== event.currentTarget) return` |
| Keys:<br>`.enter`, `.13` | `if (event.keyCode !== 13) return` (change `13` to [another key code](keycode.info) for other key modifiers) |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link to keycode.info is broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants