changeset 826:1b6fa37d46a4

Merge
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 25 Nov 2015 09:27:05 +0000
parents 3b0770e1e616 (current diff) 8fb8f3c1acf8 (diff)
children 1db3dd91fb26
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') {