Table of Contents

Class KeyInfo

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains key information.

public class KeyInfo
Inheritance
KeyInfo

Constructors

KeyInfo()

Initializes a new instance of the KeyInfo class.

KeyInfo(Key, ModifierKeys, OperatingSystems)

Initializes a new instance of the KeyInfo class.

Fields

Empty

Gets an empty KeyInfo object.

Properties

BackendOS

Gets or sets OperatingSystems in which this key combination is available.

Key

Gets or sets key value.

Modifiers

Gets or sets key modifiers.

Methods

FilterBackendOs(IEnumerable<KeyInfo>?)

Returns filtered KeyInfo list. Result has only items which are registered for the current backend OS.

GetCustomKeyLabel(Key)

Gets custom label of the key.

IsPressed(KeyEventArgs)

Checks e event arguments on whether this key is pressed.

RegisterCustomKeyLabels()

Registers custom labels for the Key enum.

Run(KeyEventArgs, Action?, bool)

Runs action if this key is pressed.

Run(KeyInfo[], KeyEventArgs, Action?, bool)

Runs action if any of the keys is pressed.

SetCustomKeyLabel(Key, string)

Sets custom key label.

ToString()

Returns a string that represents the current object.