aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindex.html1
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js17
2 files changed, 14 insertions, 4 deletions
diff --git a/index.html b/index.html
index fe52167d..86348459 100755
--- a/index.html
+++ b/index.html
@@ -212,6 +212,7 @@
212 .activeline {background: #e8f2ff !important;} 212 .activeline {background: #e8f2ff !important;}
213 div.CodeMirror span.CodeMirror-matchingbracket {color: #000;background-color: #ffd500;} 213 div.CodeMirror span.CodeMirror-matchingbracket {color: #000;background-color: #ffd500;}
214 .CodeMirror-scroll {height: auto; overflow-y: hidden; overflow-x: auto; width: 100%;} 214 .CodeMirror-scroll {height: auto; overflow-y: hidden; overflow-x: auto; width: 100%;}
215 .CodeMirror-completions select {background-color:#e8f2ff;border:1px solid #c1c1c1;box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.8);}
215 </style> 216 </style>
216 217
217 </head> 218 </head>
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index 28a66396..43751559 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -110,10 +110,19 @@ exports.StageView = Montage.create(Component, {
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) { 113 //extraKeys: {"Ctrl-Space": function(cm) {CodeMirror.simpleHint(cm, CodeMirror.javascriptHint);}}
114 CodeMirror.simpleHint(cm, CodeMirror.javascriptHint); 114 onKeyEvent: function(cm, keyEvent) {
115 } 115 if((keyEvent.type === "keyup")//need seperate keycode set per mode
116 } 116 && ((keyEvent.keyCode > 47 && keyEvent.keyCode < 57)//numbers
117 || (keyEvent.keyCode > 64 && keyEvent.keyCode <91)//letters
118 || (keyEvent.keyCode === 190)//period
119 || (keyEvent.keyCode === 189)//underscore, dash
120 )
121 ){
122
123 CodeMirror.simpleHint(cm, CodeMirror.javascriptHint);
124 }
125 }
117 }); 126 });
118 127
119 doc.editor.hline = doc.editor.setLineClass(0, "activeline"); 128 doc.editor.hline = doc.editor.setLineClass(0, "activeline");