Table of Contents

Class Hotkey

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a key or combination of keys that changes the suspension status of a ProfileConfiguration

public class Hotkey : CorePropertyChanged, IStorageModel
Inheritance
object
CorePropertyChanged
Hotkey
Implements

Constructors

Hotkey()

Creates a new instance of Hotkey

public Hotkey()

Hotkey(ProfileConfigurationHotkeyEntity)

Creates a new instance of Hotkey based on the provided entity

public Hotkey(ProfileConfigurationHotkeyEntity entity)

Parameters

entity ProfileConfigurationHotkeyEntity

Hotkey(KeyboardKey?, KeyboardModifierKey?)

public Hotkey(KeyboardKey? key, KeyboardModifierKey? modifiers)

Parameters

key KeyboardKey?
modifiers KeyboardModifierKey?

Properties

Entity

Gets the entity used to store this hotkey

public ProfileConfigurationHotkeyEntity Entity { get; }

Property Value

ProfileConfigurationHotkeyEntity

Key

Gets or sets the KeyboardKey of the hotkey

public KeyboardKey? Key { get; set; }

Property Value

KeyboardKey?

Modifiers

Gets or sets the KeyboardModifierKeys of the hotkey

public KeyboardModifierKey? Modifiers { get; set; }

Property Value

KeyboardModifierKey?

Methods

Load()

Loads the model from its associated entity

public void Load()

MatchesEventArgs(ArtemisKeyboardKeyEventArgs)

Determines whether the provided ArtemisKeyboardKeyEventArgs match the hotkey

public bool MatchesEventArgs(ArtemisKeyboardKeyEventArgs eventArgs)

Parameters

eventArgs ArtemisKeyboardKeyEventArgs

Returns

bool

true if the event args match the hotkey; otherwise false

Save()

Saves the model to its associated entity

public void Save()