Interface IHotkeyManager
The interface for the hotkey manager
Namespace: Phoenix.Hotkeys
Assembly: Phoenix.Abstractions.Hotkeys.dll
Syntax
public interface IHotkeyManager
Methods
View SourceRegisterHotkey(ModifierKeys, Keys, Action)
Registers a hotkey to fire a specific action.
Declaration
short RegisterHotkey(ModifierKeys modifiers, Keys key, Action handler)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ModifierKeys | modifiers | The modifier keys for the combo. |
System.Windows.Forms.Keys | key | The key for the combo. |
System.Action | handler | The handler to fire when the hotkey is pressed. |
Returns
Type | Description |
---|---|
System.Int16 | The hotkey id. |
UnregisterHotkey(Int16)
Unregisters the specified hotkey.
Declaration
void UnregisterHotkey(short hotkeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | hotkeyId | The id for the hotkey. |