Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Creates a shortcut scoped to an exact interaction area.

API: scripting
Project: Inno.Editor.Interactions
Scope: Editor

public InnoEditor.Interactions.EditorShortcutAttribute.EditorShortcutAttribute(string area, InnoEngine.Input.KeyCode key, InnoEngine.Input.KeyModifier modifiers = InnoEngine.Input.KeyModifier.None, bool primary = false)

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.