How to add keyboard shortcuts through extension

I am developing an extension for Jupyterlab 4 and would like to have my extension add keyboard extensions when installed. How should this be done on Jupyterlab 4? When I was working on Jupyterlab 3, I needed to add my shortcuts to the /schema/plugin.json file under jupyter.lab.shortcuts but using my old plugin.json is not working and I am not getting working shortcuts or even seeing my extension in the settings menu. Do I need to register my shortcuts in the typescript code or is this plugin.json file no longer the way to add keyboard extensions?

1 Like

plugin.json is the preferred way of adding shortcuts in JupyterLab 4. Can you provide more details?

1 Like