Search Docs
Loading...
Skip to content

Type Alias: ShortcutScopeId

type ShortcutScopeId =
| AddImageOptions
| typeof VIDEO_TIMELINE_SHORTCUT_SCOPE
| typeof EDITOR_SHORTCUT_SCOPE
| `${PanelId}`;

The active uiScope of a keyboard-shortcut keypress. Resolves to:

  • One of the named surface scopes (ly.img.scope.canvas, ly.img.scope.videoTimeline) when focus is in a region marked with data-shortcut-scope.
  • A panel id (//ly.img.panel/...) when focus is inside a panel — every PanelPortal auto-stamps the panel’s id as its scope.
  • The default ly.img.scope.editor when focus is anywhere inside the editor root but not under a more specific marker.
  • Any other string when a customer-registered scope or custom panel id is in the focus path.