Class KeyOptions
Configuration for preventDefault() and stopPropagation() control
For PreventDown, PreventUp, StopDown and StopUp the configuration which key combinations should match is a Javascript boolean expression.
Examples: For the examples, let's assume the Tab key was pressed. Note: for combinations of more than one modifier the following order of modifiers must be followed strictly: shift+ctrl+alt+meta
* Don't prevent key down: PreventDown=null or PreventDown="none" * Prevent key down of unmodified keystrokes such as "Tab": PreventDown="key+none" * Prevent key down of Tab and Ctrl+Tab PreventDown="key+none|key+ctrl" * Prevent key down of just Ctrl+Tab PreventDown="key+ctrl" * Prevent key down of Ctrl+Tab and Shift+Tab but not Shift+Ctrl+Tab: PreventDown="key+shift|key+ctrl" * Prevent key down of Shift+Ctrl+Tab and Ctrl+Tab but not Shift+Tab: PreventDown="key+shift+ctrl|key+ctrl" * Prevent any combination of key and modifiers, but not the unmodified key: PreventDown="key+any" * Prevent any combination of key and modifiers, even the unmodified key: PreventDown="any"
public class KeyOptions
- Inheritance
-
KeyOptions
- Inherited Members
- Extension Methods
Constructors
KeyOptions()
public KeyOptions()
Properties
Key
Javascript keyboard event.key
Examples: " " for space, "Tab" for tab, "a" for lowercase A-key. Also allowed: JS regex such as "/[a-z]/" or "/a|b/" but NOT "/[a-z]/g" or "/[a-z]/i" regex must be enclosed in two forward slashes!
public string Key { get; set; }
Property Value
PreventDown
public string PreventDown { get; set; }
Property Value
PreventUp
public string PreventUp { get; set; }
Property Value
StopDown
public string StopDown { get; set; }
Property Value
StopUp
public string StopUp { get; set; }
Property Value
SubscribeDown
Subscribe down key and invoke event KeyDown on c# side
public bool SubscribeDown { get; set; }
Property Value
SubscribeUp
Subscribe up key and invoke event KeyUp on c# side
public bool SubscribeUp { get; set; }