Skip to content

Commit b092b61

Browse files
Arecherdacap
authored andcommitted
Add 'Command' explanation to .aseprite-keys documentation
Added a paragraph to explain that you need to create custom commands to be able to hook up custom key shortcuts to extension functionality. Added link to API documentation for :NewCommand(). Since it links from the Docs repository to the API repository, I had to use a hardcoded website link. If there is a better way to do that, let me know
1 parent af4206d commit b092b61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/keys.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ can be created / exported from [Edit > Keyboard Shortcuts](keyboard-shortcuts.md
4747
</keyboard>
4848
```
4949

50+
When creating a keyboard shortcut for custom functionality in an
51+
aseprite extension, you must create a New Command for it first.
52+
You can then use that Command's title to bind the functionality
53+
to the shortcut using the `.aseprite-keys` file.
54+
55+
You can read more on how to create Commands in the [API documentation](https://www.aseprite.org/api/plugin#pluginnewcommand)
56+
5057
---
5158

5259
**SEE ALSO**

0 commit comments

Comments
 (0)