Enhancement: save & next / close shortcut key (#8243)

This commit is contained in:
shamoon authored and GitHub committed 2024-11-12 16:21:10 -08:00
1 parent a283a65813
commit 3633fb382f
2 files changed
+18

No files matched your search

@@ -509,6 +509,16 @@ export class DocumentDetailComponent
.subscribe(() => {
if (this.openDocumentService.isDirty(this.document)) this.save()
})
this.hotKeyService
.addShortcut({
keys: 'control.shift.s',
description: $localize`Save and close / next`,
})
.pipe(takeUntil(this.unsubscribeNotifier))
.subscribe(() => {
if (this.openDocumentService.isDirty(this.document)) this.saveEditNext()
})
}
ngOnDestroy(): void {