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>
<input
bind:value={fileTransferViewModel.exportKey}
on:enter={fileTransferViewModel.downloadFile}
type="password"
></input>
</div>
@@ -776,6 +777,7 @@ function ExportModal(
bind:value={
fileTransferViewModel.exportKeyConfirmation
}
on:enter={fileTransferViewModel.downloadFile}
type="password"
></input>
</div>
@@ -901,6 +903,7 @@ function ImportDecryptionDataModal(
</span>
<input
bind:value={fileTransferViewModel.importKey}
on:enter={fileTransferViewModel.decryptImport}
type="password"
></input>
</div>
Binary file not shown.
@@ -139,6 +139,7 @@ export default class FileTransferViewModel extends Context {
};
downloadFile = async (): Promise<void> => {
if (this.cannotExport.value == true) return;
const date = new Date().toISOString().split("T")[0];
const backup: Blob =