Table of Contents

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

KeyModifiers

WinAlt

The value for the key modifier Win + Alt command.
public const KeyModifiers WinAlt = LAlt | LWin

Field Value

KeyModifiers

WinCtrl

The value for the key modifier Win + Ctrl command.
public const KeyModifiers WinCtrl = LControl | LWin

Field Value

KeyModifiers

WinCtrlShift

The value for the key modifier Win + Ctrl + Shift command.
public const KeyModifiers WinCtrlShift = LControl | LShift | LWin

Field Value

KeyModifiers

WinShift

The value for the key modifier Win + Shift command.
public const KeyModifiers WinShift = LShift | LWin

Field Value

KeyModifiers

Properties

Key

See https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
VIRTUAL_KEY Key { get; }

Property Value

VIRTUAL_KEY

Modifiers

Modifiers like Alt, Ctrl, and Win.
KeyModifiers Modifiers { get; }

Property Value

KeyModifiers

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.

Returns

string