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

pull/1/head
yflory 8 years ago
parent 96ccb94397
commit 3c4b6a89d2

@ -523,6 +523,10 @@ define([
placeholder: name, placeholder: name,
value: name value: name
}).data('path', path); }).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) { $input.on('keyup', function (e) {
if (e.which === 13) { if (e.which === 13) {
removeInput(true); removeInput(true);

Loading…
Cancel
Save