summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Sargent <esthepiking@gmail.com>2012-11-28 19:58:42 -0700
committerErik Sargent <esthepiking@gmail.com>2012-11-28 19:58:42 -0700
commita73a263543c9b28264288f6c6600a35619b9bb17 (patch)
tree20253190a507f4f9ac10c485ac8b841954b2287a
parent8802dac02a01a7daeadccac8a331a5b5c2badb2a (diff)
downloadnextcloud-server-a73a263543c9b28264288f6c6600a35619b9bb17.tar.gz
nextcloud-server-a73a263543c9b28264288f6c6600a35619b9bb17.zip
Enter
-rw-r--r--apps/files/js/keyboardshortcuts.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/files/js/keyboardshortcuts.js b/apps/files/js/keyboardshortcuts.js
index 8a99bb52691..95e1ce428c9 100644
--- a/apps/files/js/keyboardshortcuts.js
+++ b/apps/files/js/keyboardshortcuts.js
@@ -24,7 +24,8 @@ Files.bindKeyboardShortcuts = function (document, $) {
ctrl: 16,
esc: 27,
downArrow: 40,
- upArrow: 38
+ upArrow: 38,
+ enter: 13
};
$(document).keydown(function(event){//check for modifier keys
@@ -108,6 +109,15 @@ Files.bindKeyboardShortcuts = function (document, $) {
}
}
+ if($.inArray(keyCodes.enter, keys) !== -1){
+ $("#fileList tr").each(function(index){
+ if($(this).hasClass("mouseOver")){
+ $(this).removeClass("mouseOver");
+ $(this).find("span:first").trigger('click');
+ }
+ });
+ }
+
removeA(keys, event.keyCode);
});
}; \ No newline at end of file