Skip to main content

KeyGesture Class

Defines a keyboard input combination.

Definition​

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class KeyGesture : IEquatable<KeyGesture>, 
IFormattable
View Source
InheritanceObject → KeyGesture
ImplementsIEquatable(KeyGesture), IFormattable

Constructors​

KeyGesture(Key, KeyModifiers)Initializes a new instance of the KeyGesture class

Properties​

Key 
KeyModifiers 

Methods​

Equals(KeyGesture) 
Equals(Object)
(Overrides Object.Equals(Object))
GetHashCode()
(Overrides Object.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Matches(KeyEventArgs) 
Parse(String) 
ToString()
(Overrides Object.ToString())
ToString(String, IFormatProvider)Returns the current KeyGesture as a string formatted according to the format string and appropriate IFormatProvider

Operators​

Equality(KeyGesture, KeyGesture) 
Inequality(KeyGesture, KeyGesture) 

See Also​

Reference​

Avalonia.Input Namespace