Class Hotkey
Represents a key or combination of keys that changes the suspension status of a ProfileConfiguration
public class Hotkey : CorePropertyChanged, IStorageModel
- Inheritance
-
objectCorePropertyChangedHotkey
- 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
entityProfileConfigurationHotkeyEntity
Hotkey(KeyboardKey?, KeyboardModifierKey?)
public Hotkey(KeyboardKey? key, KeyboardModifierKey? modifiers)
Parameters
keyKeyboardKey?modifiersKeyboardModifierKey?
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
Modifiers
Gets or sets the KeyboardModifierKeys of the hotkey
public KeyboardModifierKey? Modifiers { get; set; }
Property Value
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
eventArgsArtemisKeyboardKeyEventArgs
Returns
Save()
Saves the model to its associated entity
public void Save()