don't let search interfere with renaming

pull/1/head
ansuz 7 years ago
parent 9d662bd337
commit 3ff0eb116b

@ -582,6 +582,7 @@ define([
$input.on('keydown', function (e) { e.stopPropagation(); });
$input.on('keyup', function (e) {
e.stopPropagation();
if (e.which === 13) {
removeInput(true);
filesOp.rename(path, $input.val(), refresh);
@ -590,7 +591,7 @@ define([
if (e.which === 27) {
removeInput(true);
}
});
}).on('keypress', function (e) { e.stopPropagation(); });
//$element.parent().append($input);
$name.after($input);
$input.focus();

Loading…
Cancel
Save