![]() Dot - Since the modifiers are dot-delimited.īeyond that, the values in your event-type are either character literals or special values taken from the "key" property of the event object (ex, "ArrowRight" and "PageDown").There are then two replacement keys that are there just keep the syntax from breaking: meta - The Command key on Mac and the Windows key on Windows.You basically start with the event-type and then add a series of dot-delimited modifiers. The syntax for the key binding is very similar to what I had in my previous post. Meaning, if you need to cancel the default-behavior of the key-combination, you have to do it yourself (with $event.preventDefault()). There is also no implicit support for browser-overrides. And, these key combinations can only be bound to a specific element (or host) - the plugin doesn't appear to support the global "document:" or "window:" event-scope. The native KeyEventsPlugin plugin only support keydown and keyup events, not keypress. So, digging through the actual source code, here's what I can find.įirst, the limitations. ![]() It is touched upon briefly in the " Basics: User Input" documentation but, there is very little explanation of either the breadth or the limitations of the key-combination support. Run this demo in my JavaScript Demos project on GitHub.įrom what I can see, this appears to be an all-but-undocumented feature.
0 Comments
Leave a Reply. |