Synced
EditorShortcutAttribute.Constructor
Section titled “EditorShortcutAttribute.Constructor”
- Creates a shortcut scoped to an exact interaction area.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Interactions
Declaration
Section titled “Declaration”public Inno.Editor.Interactions.EditorShortcutAttribute.EditorShortcutAttribute(string area, Inno.Core.Input.KeyCode key, Inno.Core.Input.KeyModifier modifiers = Inno.Core.Input.KeyModifier.None, bool primary = false)Parameters
Section titled “Parameters”Parameter area: The exact focused area that accepts the shortcut, or an empty string for any area.
Parameter key: The non-modifier key that triggers the action.
Parameter modifiers: The exact additional modifier keys required by the gesture.
Parameter primary: Whether the platform primary modifier, Command on macOS or Control elsewhere, is required.