MxKeyGesture class¶
Represents a keyboard shortcut consisting of one or two key gestures.
Namespace: Eremex.AvaloniaUI.Controls.Bars
Assembly: Eremex.Avalonia.Controls.dll
NuGet Package: Eremex.Avalonia.Controls
Declaration¶
Public Members¶
| name | description |
|---|---|
| MxKeyGesture(…) | Initializes a new instance of the MxKeyGesture class with the specified keys and modifiers. |
| static Parse(…) | Parses a one-key or comma-separated two-key shortcut, or returns null if the string cannot be parsed. |
| HasSecondKey { get; } | Gets whether the shortcut contains a second key gesture. |
| Key { get; } | Gets the key of the first gesture. |
| KeyModifiers { get; } | Gets the modifiers of the first gesture. |
| SecondKey { get; } | Gets the key of the second gesture, or Key.None if there is no second gesture. |
| SecondKeyModifiers { get; } | Gets the modifiers of the second gesture, or KeyModifiers.None if there is no second gesture. |
| Equals(…) | Returns whether this shortcut and the specified shortcut contain the same keys and modifiers. |
| override Equals(…) | |
| override GetHashCode() | |
| Matches(…) | Returns whether the supplied keyboard event matches this single-gesture shortcut. (2 methods) |
| MatchesFirst(…) | Returns whether the keyboard event matches the first gesture of the shortcut. |
| override ToString() | |
| operator == | Returns whether the two shortcuts are equal. |
| operator != | Returns whether the two shortcuts are different. |
See Also¶
- namespace Eremex.AvaloniaUI.Controls.Bars