|
1 | | -<!-- Do not edit this file. It is automatically generated by API Documenter. --> |
2 | | - |
3 | | -[Home](./index.md) > [@svelte-put/shortcut](./shortcut.md) |
4 | | - |
5 | | -## shortcut package |
6 | | - |
7 | | -svelte action - `use:shortcut` add keyboard shortcut to node |
8 | | - |
9 | | -## Functions |
10 | | - |
11 | | -| Function | Description | |
12 | | -| --- | --- | |
13 | | -| [shortcut(node, params)](./shortcut.shortcut.md) | Listen for keyboard event and trigger <code>shortcut</code> [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) | |
14 | | - |
15 | | -## Interfaces |
16 | | - |
17 | | -| Interface | Description | |
18 | | -| --- | --- | |
19 | | -| [ShortcutEventDetails](./shortcut.shortcuteventdetails.md) | <code>detail</code> payload for 'shortcut' [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) | |
20 | | -| [ShortcutParameters](./shortcut.shortcutparameters.md) | svelte action parameters to config behavior of <code>shortcut</code> | |
21 | | -| [ShortcutTrigger](./shortcut.shortcuttrigger.md) | A definition of a shortcut trigger | |
22 | | - |
23 | | -## Type Aliases |
24 | | - |
25 | | -| Type Alias | Description | |
26 | | -| --- | --- | |
27 | | -| [ShortcutModifier](./shortcut.shortcutmodifier.md) | Supported modifier keys, map to [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent)<!-- -->'s [altkey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey)<!-- -->, [ctrlKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey)<!-- -->, [shiftKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey)<!-- -->, [metaKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey)<!-- -->. | |
28 | | -| [ShortcutModifierDefinition](./shortcut.shortcutmodifierdefinition.md) | Possible variations for modifier definition | |
29 | | - |
| 1 | +<!-- Do not edit this file. It is automatically generated by API Documenter. --> |
| 2 | + |
| 3 | +[Home](./index.md) > [@svelte-put/shortcut](./shortcut.md) |
| 4 | + |
| 5 | +## shortcut package |
| 6 | + |
| 7 | +svelte action - `use:shortcut` add keyboard shortcut to node |
| 8 | + |
| 9 | +## Functions |
| 10 | + |
| 11 | +| Function | Description | |
| 12 | +| ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 13 | +| [shortcut(node, params)](./shortcut.shortcut.md) | Listen for keyboard event and trigger <code>shortcut</code> [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) | |
| 14 | + |
| 15 | +## Interfaces |
| 16 | + |
| 17 | +| Interface | Description | |
| 18 | +| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | |
| 19 | +| [ShortcutAttributes](./shortcut.shortcutattributes.md) | Additional attributes extended from <code>svelte-put/shortcut</code> | |
| 20 | +| [ShortcutEventDetails](./shortcut.shortcuteventdetails.md) | <code>detail</code> payload for 'shortcut' [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) | |
| 21 | +| [ShortcutParameters](./shortcut.shortcutparameters.md) | svelte action parameters to config behavior of <code>shortcut</code> | |
| 22 | +| [ShortcutTrigger](./shortcut.shortcuttrigger.md) | A definition of a shortcut trigger | |
| 23 | + |
| 24 | +## Type Aliases |
| 25 | + |
| 26 | +| Type Alias | Description | |
| 27 | +| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 28 | +| [ShortcutModifier](./shortcut.shortcutmodifier.md) | Supported modifier keys, map to [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent)<!-- -->'s [altkey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey)<!-- -->, [ctrlKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey)<!-- -->, [shiftKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey)<!-- -->, [metaKey](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey)<!-- -->. | |
| 29 | +| [ShortcutModifierDefinition](./shortcut.shortcutmodifierdefinition.md) | Possible variations for modifier definition | |
0 commit comments