# HG changeset patch # User Brecht De Man # Date 1448294687 0 # Node ID 91a4fada83d49a32945e5746701df2ec9973efa1 # Parent 1dfcfdb7a1ad3c530d05606873da8ba542ca0b05 Revert revision 349 regarding change to enter behaviour: enter in a dialog box goes to next question/message, starts test or submits answers, rather than to create a new line / carriage return. diff -r 1dfcfdb7a1ad -r 91a4fada83d4 core.js --- a/core.js Mon Nov 23 16:02:37 2015 +0000 +++ b/core.js Mon Nov 23 16:04:47 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') {