From 554f969b827e596e56eb3c25e78d62f4926ae27a Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Mon, 25 Nov 2013 15:57:51 -0800 Subject: [PATCH] Bug 940713 - Enable autoclose brackets for source editor. r=anton --- browser/devtools/sourceeditor/editor.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/browser/devtools/sourceeditor/editor.js b/browser/devtools/sourceeditor/editor.js index a3709118e7f2..b0a21f702295 100644 --- a/browser/devtools/sourceeditor/editor.js +++ b/browser/devtools/sourceeditor/editor.js @@ -122,16 +122,17 @@ function Editor(config) { this.version = null; this.config = { - value: "", - mode: Editor.modes.text, - indentUnit: tabSize, - tabSize: tabSize, - contextMenu: null, - matchBrackets: true, - extraKeys: {}, - indentWithTabs: useTabs, - styleActiveLine: true, - theme: "mozilla" + value: "", + mode: Editor.modes.text, + indentUnit: tabSize, + tabSize: tabSize, + contextMenu: null, + matchBrackets: true, + extraKeys: {}, + indentWithTabs: useTabs, + styleActiveLine: true, + autoCloseBrackets: true, + theme: "mozilla" }; // Additional shortcuts.