Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix key modifiers detecting #2432

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 1 commit into from
Mar 8, 2016
Merged

fix key modifiers detecting #2432

merged 1 commit into from
Mar 8, 2016

Conversation

rhyzx
Copy link

@rhyzx rhyzx commented Mar 8, 2016

I found this when investigating the possibility of extending modifiers for v-on.

This feature is useful in some situation, eg: real-blur

Vue.modifier('real', function (handler) {
  return function (evt) {
    if (evt.type !== 'blur' || document.activeElement !== evt.target) {
      return handler.call(this, evt)
    }
  }
})

@yyx990803 :trollface:

yyx990803 added a commit that referenced this pull request Mar 8, 2016
fix key modifiers detecting
@yyx990803 yyx990803 merged commit 4299add into vuejs:dev Mar 8, 2016
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.

2 participants