Set Ctrl+Enter shortcuts to null, don't generate newlines (#333)
This commit is contained in:
parent
bece2292fb
commit
8e82fe96c3
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ class Editor extends React.Component {
|
||||||
|
|
||||||
this._cm.setOption('extraKeys', {
|
this._cm.setOption('extraKeys', {
|
||||||
'Cmd-Enter': () => null,
|
'Cmd-Enter': () => null,
|
||||||
'Shift-Cmd-Enter': () => null
|
'Shift-Cmd-Enter': () => null,
|
||||||
|
'Ctrl-Enter': () => null,
|
||||||
|
'Shift-Ctrl-Enter': () => null
|
||||||
});
|
});
|
||||||
|
|
||||||
this.initializeDocuments(this.props.files);
|
this.initializeDocuments(this.props.files);
|
||||||
|
|
Loading…
Reference in a new issue