Enable binding keyboard shortcuts to a button in Office Add-in or a function in JavaScript
I have implemented an Excel Add-in, where there are buttons. Clicking on a button will trigger a JavaScript function.
It will be much convenient to allow users to bind shortcut to a button / function. Users will be able to trigger them more quickly when they need.
There may be several possibilities as solutions: 1) provide a mean in JavaScript API to bind a shortcut to a button / function; so it will be the job of the add-in developer to bind a shortcut 2) provide a mean to allow users to bind a shortcut to a button in an add-in.
Note that, in Excel users can bind a shortcut to a VBA macro. That proves that binding shortcuts is a real need.
This request is also valid for Word Add-in (there is a suggestion: https://officespdev.uservoice.com/forums/224641-general/suggestions/6572900-add-keyboard-shortcut), PowerPoint Add-in...

Thank you for your feedback, we have started investigating this feature and will share an update soon.
4 comments
-
Richard van Laak commented
Having a Office JS API to register keyboard shortcuts would be a great way of closing the functionality gap with VBA.
-
Anonymous commented
Any update?
-
Viktor commented
Any updates on this?
-
Nick Lechnowskyj commented
Hello, any updates on this?