• Preparing search index...
  • The search index is not available
@selenite/commons
  • @selenite/commons
  • Action
  • Shortcut
  • shortcut

Function shortcut

  • shortcut<E>(node, params): ActionReturn<ShortcutSettings<E>>
  • Action to add a keyboard shortcut.

    All keyboard listeners are attached to document.

    Type Parameters

    • E extends Element

    Parameters

    • node: E

      The element the shortcut is bound to

    • params: ShortcutSettings<E>

      Settings for the shortcut

    Returns ActionReturn<ShortcutSettings<E>>

    svelte action to add a keyboard shortcut

    • Defined in src/lib/actions/shortcut.ts:173

Settings

Member Visibility
@selenite/commons
  • Loading...

Generated using TypeDoc