Mercurial > hg > webaudioevaluationtool
changeset 1463:c660254104e3
Merge
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 25 Nov 2015 09:27:05 +0000 |
parents | bd5cbaf775cd (current diff) 91a4fada83d4 (diff) |
children | ffb7f1c1f97c |
files | .hgignore README.txt ape.css ape.js core.js docs/Instructions/ListeningTestInstructions.pdf docs/Instructions/ListeningTestInstructions.tex example_eval/project.xml pythonServer.py save.php scripts/comment_parser.py scripts/evaluation_stats.py scripts/score_parser.py scripts/score_plot.py scripts/timeline_view.py test_create/test_create.html |
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') {