Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-12-18 19:39:01 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-02 19:17:30 +0400
commita6733ff012b2d6c41c6d551ad1353856f9dfa14b (patch)
tree28567a34fc8d3097f709a2c9df29ba2df6215b25 /apps
parent740b6623aad0b69e7f16348ad3d4a098a0a9e598 (diff)
abort rename on ESC keyup
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js7
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();