Fix download shortcut

This commit is contained in:
2022-01-05 23:33:42 +01:00
parent 3d0c6dfacd
commit 4a44133112
2 changed files with 4 additions and 4 deletions

View File

@@ -84,13 +84,13 @@ export const download_list = () => {
<iframe class="download_frame" bind:this={download_frame} title="File download frame"></iframe> <iframe class="download_frame" bind:this={download_frame} title="File download frame"></iframe>
<Modal bind:this={download_captcha_window} title={captcha_window_title} width="500px"> <Modal bind:this={download_captcha_window} title={captcha_window_title} width="500px">
{#if captcha_type === "rate_limit"} {#if captcha_type === "rate_limit"}
<p> <p class="indent">
This file is using a suspicious amount of bandwidth relative to This file is using a suspicious amount of bandwidth relative to
its popularity. To continue downloading this file you will have its popularity. To continue downloading this file you will have
to prove that you're a human first. to prove that you're a human first.
</p> </p>
{:else if captcha_type === "malware"} {:else if captcha_type === "malware"}
<p> <p class="indent">
According to our scanning systems this file may contain a virus. According to our scanning systems this file may contain a virus.
You can continue downloading this file at your own risk, but you You can continue downloading this file at your own risk, but you
will have to prove that you're a human first. will have to prove that you're a human first.

View File

@@ -289,9 +289,9 @@ const keyboard_event = evt => {
break break
case 83: case 83:
if (evt.shiftKey) { if (evt.shiftKey) {
download_list() // SHIFT + S downloads all files in list downloader.download_list() // SHIFT + S downloads all files in list
} else { } else {
download() // S to download the current file downloader.download_file() // S to download the current file
} }
break break
case 82: // R to toggle list shuffle case 82: // R to toggle list shuffle