add on:enter to export inputs

This commit is contained in:
marlon-erler
2026-09-05 02:36:10 +02:00
parent b7d85510d5
commit b1da972d09
5 changed files with 142 additions and 138 deletions
Binary file not shown.
Binary file not shown.
+3
View File
@@ -758,6 +758,7 @@ function ExportModal(
</span> </span>
<input <input
bind:value={fileTransferViewModel.exportKey} bind:value={fileTransferViewModel.exportKey}
on:enter={fileTransferViewModel.downloadFile}
type="password" type="password"
></input> ></input>
</div> </div>
@@ -776,6 +777,7 @@ function ExportModal(
bind:value={ bind:value={
fileTransferViewModel.exportKeyConfirmation fileTransferViewModel.exportKeyConfirmation
} }
on:enter={fileTransferViewModel.downloadFile}
type="password" type="password"
></input> ></input>
</div> </div>
@@ -901,6 +903,7 @@ function ImportDecryptionDataModal(
</span> </span>
<input <input
bind:value={fileTransferViewModel.importKey} bind:value={fileTransferViewModel.importKey}
on:enter={fileTransferViewModel.decryptImport}
type="password" type="password"
></input> ></input>
</div> </div>
Binary file not shown.
@@ -139,6 +139,7 @@ export default class FileTransferViewModel extends Context {
}; };
downloadFile = async (): Promise<void> => { downloadFile = async (): Promise<void> => {
if (this.cannotExport.value == true) return;
const date = new Date().toISOString().split("T")[0]; const date = new Date().toISOString().split("T")[0];
const backup: Blob = const backup: Blob =