diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index b466926891..82ec08c670 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -235,7 +235,7 @@ function fileExplorer (appAPI, files) { } if (event.which === 13) event.preventDefault() - if (event.type === 'blur' || event.which === 13 && label.getAttribute('contenteditable')) { + if ((event.type === 'blur' || event.which === 13) && label.getAttribute('contenteditable')) { var isFolder = label.className.indexOf('folder') !== -1 var save = textUnderEdit !== label.innerText if (save) {