aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorAnanya Sen2012-04-03 15:07:33 -0700
committerAnanya Sen2012-04-03 15:07:33 -0700
commit4b1b72971567ea569a10c740e26aee33421e7bd5 (patch)
tree6c58a8383195ed931dfe4d1e8cf8c3df323dd453 /js/stage
parent2c794eca1b01743b0221af4341835d3608185dd3 (diff)
downloadninja-4b1b72971567ea569a10c740e26aee33421e7bd5.tar.gz
adding basic autocomplete
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index bee12838..28a66396 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -109,7 +109,11 @@ exports.StageView = Montage.create(Component, {
109 doc.editor.matchHighlight("CodeMirror-matchhighlight"); 109 doc.editor.matchHighlight("CodeMirror-matchhighlight");
110 doc.editor.setLineClass(doc.editor.hline, null); 110 doc.editor.setLineClass(doc.editor.hline, null);
111 doc.editor.hline = doc.editor.setLineClass(doc.editor.getCursor().line, "activeline"); 111 doc.editor.hline = doc.editor.setLineClass(doc.editor.getCursor().line, "activeline");
112 } 112 },
113 extraKeys: {"Ctrl-Space": function(cm) {
114 CodeMirror.simpleHint(cm, CodeMirror.javascriptHint);
115 }
116 }
113 }); 117 });
114 118
115 doc.editor.hline = doc.editor.setLineClass(0, "activeline"); 119 doc.editor.hline = doc.editor.setLineClass(0, "activeline");