abort rename on ESC keyup

This commit is contained in:
Jörn Friedrich Dreyer 2012-12-18 16:39:01 +01:00
parent 740b6623aa
commit a6733ff012

View file

@ -189,6 +189,13 @@ var FileList={
td.children('a.name').show();
return false;
});
input.keyup(function(event){
if (event.keyCode == 27) {
tr.data('renaming',false);
form.remove();
td.children('a.name').show();
}
});
input.click(function(event){
event.stopPropagation();
event.preventDefault();