Press enter to open a folder

pull/1/head
yflory 8 years ago
parent e57e4e60da
commit c34c1cb07c

@ -383,6 +383,13 @@ define([
// Enter
if (e.which === 13) {
var $allSelected = $content.find('.element.selected');
if ($allSelected.length === 1) {
// Open the folder or the file
$allSelected.dblclick();
return;
}
// If more than one, open only the files
var $select = $content.find('.file-element.selected');
$select.each(function (idx, el) {
$(el).dblclick();

Loading…
Cancel
Save