Use more straightforward tab keymap function

This commit is contained in:
cdr 2019-03-26 02:12:42 -04:00
parent 20be8eb5bd
commit 49e786a82d

View file

@ -108,7 +108,7 @@ class Editor extends React.Component {
delete this._cm.options.lint.options.errors;
this._cm.setOption('extraKeys', {
Tab: cm => cm.replaceSelection(Array(INDENTATION_AMOUNT + 1).join(' ')),
Tab: cm => cm.replaceSelection(' '.repeat(INDENTATION_AMOUNT)),
[`${metaKey}-Enter`]: () => null,
[`Shift-${metaKey}-Enter`]: () => null,
[`${metaKey}-F`]: 'findPersistent',