Table of Contents

Class PlatformModuleKeyEventArgs

Namespace
ATAS.Indicators.Modules
Assembly
ATAS.Indicators.dll

A key pressed or released while a PlatformModule has the keyboard focus. The same type is used in %ATAS and %ATAS X, so a module needs no WPF or Avalonia types.

Not in ATAS 8.0.15 yet: available from the next version.

public sealed class PlatformModuleKeyEventArgs : EventArgs
Inheritance
object
EventArgs
PlatformModuleKeyEventArgs
Extension Methods

Constructors

PlatformModuleKeyEventArgs(string, RenderControlKeyModifiers)

Initializes the arguments of a key press.

public PlatformModuleKeyEventArgs(string key, RenderControlKeyModifiers modifiers)

Parameters

key string

The pressed key (Key).

modifiers RenderControlKeyModifiers

The modifier keys held down.

Properties

Alt

True if Alt is held down.

public bool Alt { get; }

Property Value

bool

Control

True if Ctrl is held down.

public bool Control { get; }

Property Value

bool

Handled

Set to true if the module handled the key: the platform then does not process it further.

public bool Handled { get; set; }

Property Value

bool

Key

The name of the key as in the Key enumerations of WPF and Avalonia, which agree on it: "A"…"Z", "D0"…"D9" (digits of the main keyboard), "NumPad0"…, "F1"…, "Left", "Right", "Up", "Down", "Enter", "Escape", "Space", "Back", "Delete", "Tab", "Home", "End", "PageUp", "PageDown", "Add", "Subtract"…

public string Key { get; }

Property Value

string

Modifiers

The modifier keys held down.

public RenderControlKeyModifiers Modifiers { get; }

Property Value

RenderControlKeyModifiers

Shift

True if Shift is held down.

public bool Shift { get; }

Property Value

bool