This is not the subject of this discussion, but do you know how to disable keyboard shortcuts? Thank you in advance.

This is not the subject of this discussion, but do you know how to disable keyboard shortcuts? Thank you in advance.

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.
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.
May I ask why you want to disable it? Just curious
.
Gewoon omdat het nutteloos is.
Niemand gebruikt het.
Ah, dus wil je de knop in de zijbalk verbergen of toetsenbord snelkoppelingen echt uitschakelen?
Verberg de knop effectief in de zijbalk.
In dat geval zou dit moeten werken:
.sidebar-footer-actions-keyboard-shortcuts {
display: none;
}
It works. Thank you so much Nate.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.