Mercurial > hg > webaudioevaluationtool
diff 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 |
line wrap: on
line diff
--- a/core.js Wed Nov 25 09:26:10 2015 +0000 +++ b/core.js Wed Nov 25 09:27:05 2015 +0000 @@ -190,6 +190,12 @@ textArea.rows = "10"; break; } + document.onkeydown=function(){ + if(window.event.keyCode=='13'){ // when you hit enter + window.event.preventDefault(); // don't make newline + popup.proceedClicked(); // go to the next window (or start the test or submit) + } + } this.popupResponse.appendChild(textArea); textArea.focus(); } else if (node.type == 'checkbox') {