Disable Ctrl + L shortcut in CodeMirror (#6143)

master
Jody LeCompte 2019-05-22 11:17:46 -05:00 committed by Lucas Duailibe
parent 7e47b4ea26
commit 2c914c7c1a
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ class CodeMirrorPanel extends React.Component {
this._codeMirror.on("change", this.handleChange);
this._codeMirror.on("focus", this.handleFocus);
window.CodeMirror.keyMap.pcSublime["Ctrl-L"] = false;
window.CodeMirror.keyMap.sublime["Ctrl-L"] = false;
this.updateValue(this.props.value || "");
this.updateOverlay();
}