# HG changeset patch # User Nicholas Jillings # Date 1517742980 0 # Node ID b3ebd07e7a0fb1d95049efcf0dfc40db7873450c # Parent 24681d53ee7abe5f9b21fe6d9f97f48a982d54ee Fix for #270 diff -r 24681d53ee7a -r b3ebd07e7a0f js/core.js --- 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(); }