Mercurial > hg > webaudioevaluationtool
changeset 2982:b3ebd07e7a0f
Fix for #270
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sun, 04 Feb 2018 11:16:20 +0000 |
parents | 24681d53ee7a |
children | bc33aca9f8f1 171706465aa9 |
files | js/core.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Fri Jan 19 13:03:18 2018 +0000 +++ b/js/core.js Sun Feb 04 11:16:20 2018 +0000 @@ -2424,8 +2424,11 @@ function trackCommentFocus() { return document.activeElement.className.indexOf("trackComment") >= 0; } + if (trackCommentFocus()) { + return; + } if (e.key === " ") { - if (isPlaying() && trackCommentFocus() === false) { + if (isPlaying()) { e.preventDefault(); audioEngineContext.stop(); }