Fix a conflict with the arrow keys and renaming a folder in the tree

This commit is contained in:
yflory 2017-05-10 14:48:15 +02:00
parent 96ccb94397
commit 3c4b6a89d2
1 changed files with 4 additions and 0 deletions

View File

@ -523,6 +523,10 @@ define([
placeholder: name,
value: name
}).data('path', path);
// Stop propagation on keydown to avoid issues with arrow keys
$input.on('keydown', function (e) { e.stopPropagation(); });
$input.on('keyup', function (e) {
if (e.which === 13) {
removeInput(true);