abort rename on ESC keyup
This commit is contained in:
parent
740b6623aa
commit
a6733ff012
1 changed files with 7 additions and 0 deletions
|
@ -189,6 +189,13 @@ var FileList={
|
||||||
td.children('a.name').show();
|
td.children('a.name').show();
|
||||||
return false;
|
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){
|
input.click(function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue