Troubleshooting custom keyboard shortcuts with Powerpoint add-in on Mac

Alistair Gillespie 1 Reputation point
2022-11-21T00:13:45.897+00:00

Hi,

I've followed the following guides to set up custom keyboard shortcuts for a Powerpoint add-in. It should all be ready to go.

The shortcuts.json resides in the src directory of the plugin, and I've created the required functions in taskpane.js like so:

shortcuts.json:

{  
    "actions": [  
        {  
            "id": "SHOWTASKPANE",  
            "type": "ExecuteFunction",  
            "name": "Show task pane for add-in"  
        },  
        {  
            "id": "HIDETASKPANE",  
            "type": "ExecuteFunction",  
            "name": "Hide task pane for add-in"  
        }  
    ],  
    "shortcuts": [  
        {     
            "action": "SHOWTASKPANE",  
            "key": {  
                "default": "Cmd+Shift+K"  
            }  
        },  
        {  
            "action": "HIDETASKPANE",  
            "key": {  
                "default": "Cmd+Shift+J"  
            }  
        }  
    ]  
}  

taskpane.js:

Office.actions.associate('SHOWTASKPANE', function () {  
  return Office.addin.showAsTaskpane()  
    .then(function () {  
      return;  
    })  
    .catch(function (error) {  
      return error.code;  
    });  
});  
  
Office.actions.associate('HIDETASKPANE', function () {  
  return Office.addin.hide()  
    .then(function () {  
      return;  
    })  
    .catch(function (error) {  
      return error.code;  
    });  
});  

manifest.xml:

  </VersionOverrides>  
  <ExtendedOverrides Url="https://localhost:3000/src/shortcuts.json"></ExtendedOverrides>  
</OfficeApp>  

Has anyone managed to get this working for Mac? My shortcuts failed to work after trying multiple different command chains, and no logs showed up via npm logging or the inspect elements panel.

Thank you for your help.

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Aqlima Amani 0 Reputation points
    2025-09-09T00:11:34.9566667+00:00

    how to make you Chromebook touchscreen?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.