Use more straightforward tab keymap function
This commit is contained in:
parent
20be8eb5bd
commit
49e786a82d
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class Editor extends React.Component {
|
||||||
delete this._cm.options.lint.options.errors;
|
delete this._cm.options.lint.options.errors;
|
||||||
|
|
||||||
this._cm.setOption('extraKeys', {
|
this._cm.setOption('extraKeys', {
|
||||||
Tab: cm => cm.replaceSelection(Array(INDENTATION_AMOUNT + 1).join(' ')),
|
Tab: cm => cm.replaceSelection(' '.repeat(INDENTATION_AMOUNT)),
|
||||||
[`${metaKey}-Enter`]: () => null,
|
[`${metaKey}-Enter`]: () => null,
|
||||||
[`Shift-${metaKey}-Enter`]: () => null,
|
[`Shift-${metaKey}-Enter`]: () => null,
|
||||||
[`${metaKey}-F`]: 'findPersistent',
|
[`${metaKey}-F`]: 'findPersistent',
|
||||||
|
|
Loading…
Reference in a new issue