Mercurial > hg > webaudioevaluationtool
changeset 353:2b1aa8be61b0 Dev_main
Merge
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Nov 2015 09:27:05 +0000 |
parents | 4ec19035710e (current diff) 2ad8022d17a7 (diff) |
children | 8a6d14ca37fe |
files | |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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') {