diff options
Diffstat (limited to 'app/static/js/record.js')
| -rw-r--r-- | app/static/js/record.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/static/js/record.js b/app/static/js/record.js index 67ad2a6..aa5a3b3 100644 --- a/app/static/js/record.js +++ b/app/static/js/record.js @@ -4,10 +4,7 @@ allInputs = Array.from(document.getElementsByClassName('input')) allInputs.forEach(e => e.addEventListener('keypress', handleEnterKey)); function handleEnterKey(event) { - - // add ids to each input programatically - - if (event.key = 'Enter') { + if (event.key === "Enter") { event.preventDefault(); //Isolate the node that we're after |
