diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-12-18 16:39:01 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-02 16:17:30 +0100 |
commit | a6733ff012b2d6c41c6d551ad1353856f9dfa14b (patch) | |
tree | 28567a34fc8d3097f709a2c9df29ba2df6215b25 /apps/files | |
parent | 740b6623aad0b69e7f16348ad3d4a098a0a9e598 (diff) | |
download | nextcloud-server-a6733ff012b2d6c41c6d551ad1353856f9dfa14b.tar.gz nextcloud-server-a6733ff012b2d6c41c6d551ad1353856f9dfa14b.zip |
abort rename on ESC keyup
Diffstat (limited to 'apps/files')
-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(); |