Fix a conflict with the arrow keys and renaming a folder in the tree
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user