Skip to content

Commit e20e100

Browse files
committed
Editor: fix Tab key inserting spaces instead of unfocusing
1 parent 3bd94d5 commit e20e100

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

editor/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
tabSize: 2,
106106
indentWithTabs: false,
107107
autofocus: true,
108+
extraKeys: { Tab: function(cm) { cm.replaceSelection(' '); } },
108109
});
109110
editor.setValue(DEFAULT);
110111
editor.setSize('100%', '100%');

0 commit comments

Comments
 (0)