Mercurial > hg > webaudioevaluationtool
comparison core.js @ 826:1b6fa37d46a4
Merge
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Nov 2015 09:27:05 +0000 |
parents | 3b0770e1e616 8fb8f3c1acf8 |
children | 1db3dd91fb26 |
comparison
equal
deleted
inserted
replaced
815:3b0770e1e616 | 826:1b6fa37d46a4 |
---|---|
187 break; | 187 break; |
188 case 'huge': | 188 case 'huge': |
189 textArea.cols = "50"; | 189 textArea.cols = "50"; |
190 textArea.rows = "10"; | 190 textArea.rows = "10"; |
191 break; | 191 break; |
192 } | |
193 document.onkeydown=function(){ | |
194 if(window.event.keyCode=='13'){ // when you hit enter | |
195 window.event.preventDefault(); // don't make newline | |
196 popup.proceedClicked(); // go to the next window (or start the test or submit) | |
197 } | |
192 } | 198 } |
193 this.popupResponse.appendChild(textArea); | 199 this.popupResponse.appendChild(textArea); |
194 textArea.focus(); | 200 textArea.focus(); |
195 } else if (node.type == 'checkbox') { | 201 } else if (node.type == 'checkbox') { |
196 this.popupTitle.textContent = node.statement; | 202 this.popupTitle.textContent = node.statement; |