InputClick
Description
Wraps an input click (mouse or keyboard) with optional modifiers.
The ToString method returns a human-readable shortcut title (using ApplicationUtil.NameOf1). If IsNone returns true
, the shortcut title will be the empty string.
Public / Methods
ToString
Returns the string representation of this value.
The string representation has the following form:
(CTRL '+')? (SHIFT '+')? (ALT '+')? KEY? BUTTON?
where the placeholders have the following meaning:
-
CTRL
- if InputModifiers.Control is present in Modifier:
ApplicationUtil.NameOf1 for KeyboardKey.Control. -
SHIFT
- if InputModifiers.Shift is present in Modifier:
ApplicationUtil.NameOf1 for KeyboardKey.Shift. -
ALT
- if InputModifiers.Alt is present in Modifier:
ApplicationUtil.NameOf1 for KeyboardKey.Alt. -
KEY
- if Key is not KeyboardKey.None:
ApplicationUtil.NameOf1 for Key. -
BUTTON
- if Button is not MouseButton.None:
ApplicationUtil.NameOf2 for Button.