fix renaming file

pull/1/head
yann300 7 years ago
parent 7ba8462827
commit 6f8c6d2b4b
  1. 2
      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) {

Loading…
Cancel
Save