Select all in drive

pull/1/head
yflory 7 years ago
parent d975bb9cc0
commit dbe8ab014d

@ -548,6 +548,13 @@ define([
return; return;
} }
// Ctrl+A select all
if (e.which === 65 && e.ctrlKey) {
$content.find('.cp-app-drive-element:not(.cp-app-drive-element-selected)')
.addClass('cp-app-drive-element-selected');
return;
}
// [Left, Up, Right, Down] // [Left, Up, Right, Down]
if ([37, 38, 39, 40].indexOf(e.which) === -1) { return; } if ([37, 38, 39, 40].indexOf(e.which) === -1) { return; }
e.preventDefault(); e.preventDefault();
@ -2908,6 +2915,7 @@ define([
} }
// else move to trash // else move to trash
moveElements(paths, [TRASH], false, refresh); moveElements(paths, [TRASH], false, refresh);
return;
} }
}); });
var isCharacterKey = function (e) { var isCharacterKey = function (e) {

Loading…
Cancel
Save