diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-12-18 19:39:01 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-02 19:17:30 +0400 |
commit | a6733ff012b2d6c41c6d551ad1353856f9dfa14b (patch) | |
tree | 28567a34fc8d3097f709a2c9df29ba2df6215b25 /apps | |
parent | 740b6623aad0b69e7f16348ad3d4a098a0a9e598 (diff) |
abort rename on ESC keyup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index cf86cc60979..1fbfc24e1e4 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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(); |