Inside the JSON file, there are two arrays. This file will describe your keyboard shortcuts, and the actions that they will invoke. Be sure the path of the file matches the location you specified for the Url attribute of the ExtendedOverrides element. Set the Url attribute to the full URL of a JSON file in your project that you will create in a later step.Ĭreate a JSON file in your project. Immediately below (not inside) the element in the manifest, add an ExtendedOverrides element.
For more information, Configure an add-in to use a shared runtime. Configure the add-in to use a shared runtimeĪdding custom keyboard shortcuts requires your add-in to use the shared runtime. One is to enable the add-in to use a shared runtime and the other is to point to a JSON-formatted file where you defined the keyboard shortcuts. There are two small changes to the manifest to make. Add one or more runtime calls of the API to map a function to each action.Create or edit the shortcuts JSON file to define actions and their keyboard shortcuts.There are three steps to add keyboard shortcuts to an add-in. When you are ready to add keyboard shortcuts to your own add-in, continue with this article. To start with a working version of an add-in with keyboard shortcuts already enabled, clone and run the sample Excel Keyboard Shortcuts.