Mercurial > hg > webaudioevaluationtool
changeset 3106:171706465aa9
Merge branch 'master' into vnext
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sun, 04 Feb 2018 11:16:45 +0000 |
parents | b89e760e091b (current diff) b3ebd07e7a0f (diff) |
children | fc25720c1a01 1ae8c03dd6a6 |
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:48:05 2018 +0000 +++ b/js/core.js Sun Feb 04 11:16:45 2018 +0000 @@ -2437,8 +2437,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(); }