Ensure that the 'When' field should be read-only in the properties panel. Fixes #6836

This commit is contained in:
Nikhil Mohite 2021-09-30 16:25:27 +05:30 committed by Akshay Joshi
parent 1632e5287a
commit 1a25fdffbb

View File

@ -47,6 +47,7 @@ export default function CodeMirror({currEditor, name, value, options, events, re
editor.current.setOption('readOnly', 'nocursor');
} else if(readonly) {
cmWrapper.current.classList.add('cm_disabled');
editor.current.setOption('readOnly', true);
editor.current.addKeyMap({'Tab': false});
editor.current.addKeyMap({'Shift-Tab': false});
} else {