Show / Hide Table of Contents

Struct KHotkey

Defines a hotkey as KMod and KKey. Has implicit conversion operators from string like "Ctrl+Shift+K", tuple (KMod, KKey), enum KKey, enum Keys.

public struct KHotkey

Namespace: Au.Types
Assembly: Au.dll

Constructors

Name Description
KHotkey(KMod, KKey)

Properties

Name Description
Key

Key without modifier keys.

Mod

Modifier keys (flags).

Methods

Name Description
Deconstruct(out KMod, out KKey)

Allows to split a KHotkey variable like var (mod, key) = hotkey;

ToString()

Operators

Name Description
explicit operator Keys(KHotkey)

Explicit conversion to System.Windows.Forms.Keys.

implicit operator KHotkey(KKey)

Implicit conversion from KKey (hotkey without modifiers).

implicit operator KHotkey(string)

Implicit conversion from string like "Ctrl+Shift+K".

implicit operator KHotkey((KMod, KKey))

Implicit conversion from tuple (KMod, KKey).

implicit operator KHotkey(Keys)

Implicit conversion from System.Windows.Forms.Keys like Keys.Ctrl|Keys.B.