Interface IKeybind
- Namespace
- Whim
- Assembly
- Whim.dll
A keybinding. This should be hashable.
public interface IKeybind
- Extension Methods
Fields
Win
The value for the key modifier
Win
command.public const KeyModifiers Win = LWin
Field Value
WinAlt
The value for the key modifier
Win
+ Alt
command.public const KeyModifiers WinAlt = LAlt | LWin
Field Value
WinCtrl
The value for the key modifier
Win
+ Ctrl
command.public const KeyModifiers WinCtrl = LControl | LWin
Field Value
WinCtrlShift
The value for the key modifier
Win
+ Ctrl
+ Shift
command.public const KeyModifiers WinCtrlShift = LControl | LShift | LWin
Field Value
WinShift
The value for the key modifier
Win
+ Shift
command.public const KeyModifiers WinShift = LShift | LWin
Field Value
Properties
Key
See https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
VIRTUAL_KEY Key { get; }
Property Value
Modifiers
Modifiers like Alt, Ctrl, and Win.
KeyModifiers Modifiers { get; }
Property Value
Methods
ToString(bool)
Returns a string representation of the keybind.
string ToString(bool unifyKeyModifiers)
Parameters
unifyKeyModifiers
bool- Whether to treat key modifiers like `LWin` and `RWin` as the same. See UnifyKeyModifiers.