Add Shift-Delete keyboard shortcut
This commit is contained in:
parent
f44fe59054
commit
26e9a5404a
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user