Press enter to open a folder
This commit is contained in:
parent
e57e4e60da
commit
c34c1cb07c
@ -383,6 +383,13 @@ define([
|
|||||||
|
|
||||||
// Enter
|
// Enter
|
||||||
if (e.which === 13) {
|
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');
|
var $select = $content.find('.file-element.selected');
|
||||||
$select.each(function (idx, el) {
|
$select.each(function (idx, el) {
|
||||||
$(el).dblclick();
|
$(el).dblclick();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user