Synced
EditorShortcutAttribute.Constructor
Section titled “EditorShortcutAttribute.Constructor”
- Creates a shortcut that can be dispatched from any focused interaction surface.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Interactions
Declaration
Section titled “Declaration”public Inno.Editor.Interactions.EditorShortcutAttribute.EditorShortcutAttribute(Inno.Core.Input.KeyCode key, Inno.Core.Input.KeyModifier modifiers = Inno.Core.Input.KeyModifier.None, bool primary = false)Parameters
Section titled “Parameters”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.