aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/rule-components
diff options
context:
space:
mode:
authorEric Guzman2012-05-21 12:02:08 -0700
committerEric Guzman2012-05-21 12:02:08 -0700
commitf71e8f853605f0eb4deaf16263124aac1aad9ee1 (patch)
tree408967d5df03bd80d90ad4223a02deb3f0db9f7d /js/panels/css-panel/rule-components
parent83a777effad7b20fc9b1ad925de36a261c50451a (diff)
downloadninja-f71e8f853605f0eb4deaf16263124aac1aad9ee1.tar.gz
CSS Panel - Allow ":" to be used in selector field
Diffstat (limited to 'js/panels/css-panel/rule-components')
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
index ac714bfa..71fe8470 100644
--- a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
+++ b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
@@ -115,6 +115,8 @@ exports.CssStyleRule = Montage.create(Component, {
115 }, 115 },
116 prepareForDraw : { 116 prepareForDraw : {
117 value: function() { 117 value: function() {
118 this.selectorField.keyActions = this.keyActions;
119
118 if(this.rule.type === 'inline') { 120 if(this.rule.type === 'inline') {
119 this.selectorField.readOnly = true; 121 this.selectorField.readOnly = true;
120 this.declarationComponent.type = 'inline'; 122 this.declarationComponent.type = 'inline';
@@ -144,5 +146,26 @@ exports.CssStyleRule = Montage.create(Component, {
144 this.element.classList.add(this.unappliedClass); 146 this.element.classList.add(this.unappliedClass);
145 } 147 }
146 } 148 }
149 },
150
151 keyActions : {
152 value : {
153 hint : {
154 accept : [9,13], // accept hint
155 stop : [27], // stop editing
156 next : [40], // cycle to next hint
157 prev : [38], // cycle to prev hint
158 revert : [27], // revert value
159 backsp : [8] // backspace hit
160 },
161 noHint : {
162 stop : [27,9,13],
163 next : [40],
164 prev : [38],
165 revert : [27],
166 backsp : [8]
167 }
168 },
169 distinct: true
147 } 170 }
148}); 171});