Disable Ctrl + L shortcut in CodeMirror (#6143)
parent
7e47b4ea26
commit
2c914c7c1a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue