Search Docs
Loading...
Skip to content

Type Alias: ShortcutRoot

type ShortcutRoot = HTMLElement | Document;

The DOM root the keyboard listener attaches to.

Defaults to the engine’s canvas element so a headless @cesdk/engine integration is scoped out of the box. A host UI widens it by passing its editor container to ShortcutsAPI.mount. The listener is never bound to document, so it cannot swallow keys belonging to the surrounding app.