# HG changeset patch # User Nicholas Jillings # Date 1531927964 -3600 # Node ID aa4503f8c630f5657fafdbb217575a8686cf7e8f # Parent f78a66fbc0181f093b8909a874807e9f0032ff2b #283. Will only trigger keydown IF current state is in test diff -r f78a66fbc018 -r aa4503f8c630 js/core.js --- a/js/core.js Wed Jul 18 14:47:14 2018 +0100 +++ b/js/core.js Wed Jul 18 16:32:44 2018 +0100 @@ -2452,6 +2452,9 @@ function trackCommentFocus() { return document.activeElement.className.indexOf("trackComment") >= 0; } + if (testState.currentStatePosition != "test") { + return; + } if (trackCommentFocus()) { return; } @@ -2463,7 +2466,6 @@ } else { keypress.call(this, e.key); } - console.log(e); } }; document.addEventListener("keydown", keyboardInterfaceController, false);