-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
add .none modifier to keyboard #5976
Comments
Hmm, that sounds like a good idea but the |
Tried a POC, works, opened a PR but I think we need to discuss naming anyway. |
I like |
Also agree simple but very valid use cases |
Ah, I was just about to request the exact same thing for almost the exact same reason! I would like to add that this be extended for mouse clicks, too! click.left.none |
@TrueFusion, what is expected behaviour for mouse clicks? |
Add a new event modifier `.plain` to check if event is "plain" (no shift/ctrl/meta/alt key is pressed) vuejs#5976
@nickmessing That any click event with the ".plain" event modifier will trigger if and only if no key modifier is held down. This would leave the default click event available for complex cases and would not conflict with ".left", ".middle" and ".right" when combined. |
@TrueFusion, actually the way it's implemented in #5977 already solves that. |
Allow limiting the event to the exact system modifiers specified. close vuejs#5976
Allow limiting the event to the exact system modifiers specified. close vuejs#5976
What problem does this feature solve?
Using the modifiers is greate (.ctrl, .alt, .meta, .shift).
But there is no modifier indicating that ONLY that key was pressed (without ctrl, alt, shift or meta simultaneously.
What does the proposed API look like?
@keydown.space**.none**="myEventWhenEnterIsPressedAlone()"
@keydown.space="myEventWhenEnterIsPressedWithOrWithoutAnyModifier()"
The text was updated successfully, but these errors were encountered: