There is no such setting in the discourse admin settings but it’s possible with some tweaks using theme component or plug-in.
If you are disabling it maybe for this issue then have a look. Shortcuts messing with canvas focus
Or you may try this, not sure on this.
- Log in as an admin to your Discourse site.
- Navigate to Admin > Customize > Themes.
- Click on the ‘Edit’ button of the theme you’d like to modify or create a new theme.
- Go to the ‘Javascript’ section.
- Paste the following code:
document.addEventListener(‘keydown’, function(e) { // List of key codes or conditions to disable specific shortcuts // For example, disable ‘n’ key for new topic if (e.key === ‘n’) { e.stopImmediatePropagation(); } });
Save the changes and activate the theme.
This might help, but it’s not tested.