diff options
author | Ananya Sen | 2012-04-25 14:18:09 -0700 |
---|---|---|
committer | Ananya Sen | 2012-04-25 14:18:09 -0700 |
commit | 45bddda788afc27094b781d0823f821a421e0934 (patch) | |
tree | 68519f28ea2bfa538555a56567e65487ab1f5f62 /js/controllers | |
parent | a7548b4c53de8f42cb5e0fb1c054eba6f7c45afb (diff) | |
download | ninja-45bddda788afc27094b781d0823f821a421e0934.tar.gz |
- use on ctrl+space for code hinting
- use prototype in serialization for montage 0.8
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rw-r--r-- | js/controllers/code-editor-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/code-editor-controller.js b/js/controllers/code-editor-controller.js index bce6f410..ab0521eb 100644 --- a/js/controllers/code-editor-controller.js +++ b/js/controllers/code-editor-controller.js | |||
@@ -112,7 +112,7 @@ var CodeEditorController = exports.CodeEditorController = Montage.create(Compone | |||
112 | value: function(cm, keyEvent, type) { | 112 | value: function(cm, keyEvent, type) { |
113 | //===manually triggered code completion | 113 | //===manually triggered code completion |
114 | if((this.automaticCodeComplete === false)){ | 114 | if((this.automaticCodeComplete === false)){ |
115 | if((keyEvent.ctrlKey || keyEvent.metaKey) && keyEvent.keyCode === 32){//Ctrl+Space | 115 | if(keyEvent.ctrlKey && keyEvent.keyCode === 32){//Ctrl+Space |
116 | this.codeEditor.simpleHint(cm, this.codeEditor.javascriptHint); | 116 | this.codeEditor.simpleHint(cm, this.codeEditor.javascriptHint); |
117 | } | 117 | } |
118 | } | 118 | } |