comparison core.js @ 825:8fb8f3c1acf8

Revert revision 349 regarding change to enter behaviour: enter in a dialog box goes to next question/message, starts test or submits answers, rather than to create a new line / carriage return.
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Mon, 23 Nov 2015 16:04:47 +0000
parents d0a061995428
children 1b6fa37d46a4
comparison
equal deleted inserted replaced
824:cfe755cc2bc2 825:8fb8f3c1acf8
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;