Enum ScyllaModifier
A [Flags] enumeration that represents the set of logical keyboard modifier
keys - Shift, Ctrl, and Alt - held simultaneously during a keyboard shortcut.
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
[Flags]
public enum ScyllaModifier
Remarks
Because this enum is decorated with FlagsAttribute, values
can be combined with the bitwise OR operator to express compound modifier
requirements. For example, ScyllaModifier.Shift | ScyllaModifier.Ctrl
is equivalent to the predefined ShiftCtrl value. The convenience
combination values (ShiftCtrl, ShiftAlt,
CtrlAlt, ShiftCtrlAlt) are provided to improve
readability at call sites.
Each logical modifier abstracts away handedness: Shift matches either the left or the right Shift key, Ctrl matches either Control key, and Alt matches either Alt key (or the Option key on macOS). If a binding must distinguish left from right, use LeftShift / RightShift etc. directly instead.
None represents the absence of any modifier requirement; a binding decorated with None activates when no modifier key is held.
Fields
| Name | Description |
|---|---|
| Alt | Either the left or the right Alt key must be held. On macOS this corresponds to the Option key. Maps to both LeftAlt and RightAlt. |
| Ctrl | Either the left or the right Control key must be held. Maps to both LeftCtrl and RightCtrl. |
| CtrlAlt | Both Control and Alt must be held simultaneously. Equivalent to
|
| None | No modifier key is required. A binding decorated with this value activates only when neither Shift, Ctrl, nor Alt is held at the time of the key event. |
| Shift | Either the left or the right Shift key must be held. Maps to both LeftShift and RightShift. |
| ShiftAlt | Both Shift and Alt must be held simultaneously. Equivalent to
|
| ShiftCtrl | Both Shift and Control must be held simultaneously. Equivalent to
|
| ShiftCtrlAlt | Shift, Control, and Alt must all be held simultaneously. Equivalent to
|