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,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user