Prevented shorcuts activating when in codemirror areas

For #4227
This commit is contained in:
Dan Brown 2023-05-08 14:28:03 +01:00
parent 2523cee0e2
commit 8846f7d255
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -25,7 +25,7 @@ export class Shortcuts extends Component {
setupListeners() {
window.addEventListener('keydown', event => {
if (event.target.closest('input, select, textarea')) {
if (event.target.closest('input, select, textarea, .cm-editor')) {
return;
}