Add Shift-Delete keyboard shortcut

This commit is contained in:
AC 2019-09-05 22:06:22 -04:00 committed by Nils Maier
parent f44fe59054
commit 26e9a5404a

View File

@ -524,6 +524,15 @@ export class DownloadTable extends VirtualTable {
return true;
});
Keys.on("SHIFT-Delete", (event: Event) => {
const target = event.target as HTMLElement;
if (target.localName === "input") {
return false;
}
this.removeCompleteDownloads(false);
return true;
});
ctx.on("ctx-remove-all", () => this.removeAllDownloads());
ctx.on("ctx-remove-complete", () => this.removeCompleteDownloads(false));
ctx.on("ctx-remove-complete-all",