# How to add a Keyboard Shortcut to the plugin (+v13)

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113>\
**Category:** UXP Plugin API\
**Tags:** shortcuts, api-feedback\
**Created:** [September 25, 2018, 7:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113 "2018-09-25T19:29:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![igcorreia](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/igcorreia/32/35_2.png) [@igcorreia](https://forums.creativeclouddeveloper.com/u/igcorreia)\
**Post date:** [September 25, 2018, 7:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/1 "2018-09-25T19:29:51Z")

</div>

Notice [here](http://forums.creativeclouddeveloper.com/t/onboarding-and-user-experience-guidelines/104) that we can add keyboard shortcuts to the plugins.

Where can we find info about it?  
How is Adobe XD going to handle when multiple plugins want the same shortcut?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [September 25, 2018, 8:09pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/2 "2018-09-25T20:09:08Z")

</div>

Right now there’s no collision detection on shortcuts—that will be addressed in a future release after MAX.

We’ll be updating the documentation on how you can use keyboard shortcuts soon.

---

<div class="post-metadata">

**Author:** ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)\
**Post date:** [September 27, 2018, 8:13am UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/3 "2018-09-27T08:13:51Z")

</div>

There is collision detection in the XD 13 build, just not any nice way of _resolving_ conflicts. If your plugin’s shortcut conflicts with a built-in XD command, the plugins shortcut is simply ignored. If your plugin’s shortcut conflicts with another _plugin_, one of the two will be ignored. You’ll get a warning in the Developer Console but there is currently no UI shown to users when installing plugins that have these problems.

---

<div class="post-metadata">

**Author:** ![thomas](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@thomas](https://forums.creativeclouddeveloper.com/u/thomas)\
**Post date:** [October 3, 2018, 8:03pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/4 "2018-10-03T20:03:46Z")

</div>

Any updates on the new docs @peterflynn?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [October 3, 2018, 8:13pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/5 "2018-10-03T20:13:15Z")

</div>

Check out [https://github.com/AdobeXD/plugin-docs/blob/master/reference/structure/manifest.md](https://github.com/AdobeXD/plugin-docs/blob/master/reference/structure/manifest.md) – there’s more info about keyboard shortcuts there now.

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [March 1, 2019, 4:38pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/6 "2019-03-01T16:38:25Z")

</div>

> [@peterflynn](#):
>
> If your plugin’s shortcut conflicts with another _plugin_ , one of the two will be ignored.

Is it possible to determine which of the plugins will be ignored? Is it the last installed or first installed? If we know the order the user could swap the install order to enable the shortcuts for the plugin they want to have shortcuts for.

Is there a way someone can manually add a keyboard shortcut on Windows?

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [March 1, 2019, 6:07pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/7 "2019-03-01T18:07:22Z")

</div>

Currently, it’s not possible, at least on developer’s end, to determine which one will be ignored. Uninstalling and reinstalling in a different order won’t change which shortcut is ignored. Probably the best instruction to give user is to disable one of the plugins in the Plugin Manager.

Not sure if I understand what you mean by “manually add a keyboard shortcut on Windows”? If users open the plugin folder and modify the manifests, I guess that could be one way of manually adding and deleting keyboard shortcuts.

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [March 3, 2019, 9:13pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/8 "2019-03-03T21:13:27Z")

</div>

While users modifying the manifest manually is certainly possible, it’s also something we want to actively discourage. Although JSON isn’t a complex format, the syntax is still rigid enough that a user could end up with a broken plugin that is unable to load. I’m also not sure how XD would handle that situation long term (can XD uninstall said broken plugin? Can it overwrite it?)

I suspect that long term the only way around this is to allow users to override plugin shortcuts from within XD. That’s something we want to do, and we’re collecting the analytics necessary to support our decisions there, but I don’t have any hard information on when support might be added.

Whatever overrides are supported would likely be in XD proper, so I would definitely suggest voting on XD’s uservoice for keyboard shortcut customization: [https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/12929127-customize-keyboard-shortcuts](https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/12929127-customize-keyboard-shortcuts)

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [March 7, 2019, 3:30pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/9 "2019-03-07T15:30:50Z")

</div>

FYI There’s a unofficial google doc that has a list of existing shortcuts here,

> [@What Shortcuts used to create your plugin](http://forums.creativeclouddeveloper.com/t/what-shortcuts-used-to-create-your-plugin/316/11):
>
> Alright – here is the Google Spreadsheets sheet I had talked about: [https://docs.google.com/spreadsheets/d/1PXG8ENgSpcjeFkx2OQl7wiuHKnjn-oUdxx0\_MDCvc-0/edit#gid=0](https://docs.google.com/spreadsheets/d/1PXG8ENgSpcjeFkx2OQl7wiuHKnjn-oUdxx0_MDCvc-0/edit#gid=0) This isn’t anything official, but it got used during the Beta (and therefore, it is “as good as it gets” wink). Best, Pablo

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [July 2, 2019, 5:57pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/10 "2019-07-02T17:57:34Z")

</div>

Are keyboard shortcuts case sensitive? I received an email they aren’t working.

Is:

> “mac”: “Cmd+Shift+b”

different than

> “mac”: “Cmd+Shift+B”

different than

> “mac”: “cmd+shift+b”

Or is it conflicting with an existing keyboard shortcut?

Note: that is not the shortcut I’m using in my plugin

Suggestion: Add a note in the developer console when keyboard shortcuts conflict

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [July 8, 2019, 7:32pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/11 "2019-07-08T19:32:44Z")

</div>

it’s possible your keyboard shortcut does not work when another plugin uses the same shortcut. We are working on a solution to resolve conflict in the future.

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [September 25, 2019, 8:16pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/12 "2019-09-25T20:16:09Z")

</div>

Any estimate on this feature?

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [September 26, 2019, 2:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-add-a-keyboard-shortcut-to-the-plugin-v13/113/13 "2019-09-26T14:29:25Z")

</div>

Could you convert this to a feature request if that’s what this post is intended to be? Once done, we will review this!
