Mercurial > hg > webaudioevaluationtool
changeset 348:6e157d8af276 Dev_main
Feature #1302. Enter key in text-area creates new-line. Enter otherwise progresses the pre/post survey
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 23 Nov 2015 11:08:58 +0000 |
parents | 50117a4ea276 |
children | e2492704d6ff |
files | core.js |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Mon Nov 23 10:47:02 2015 +0000 +++ b/core.js Mon Nov 23 11:08:58 2015 +0000 @@ -190,12 +190,6 @@ 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') {