mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 13:58:12 +00:00
Enhancement: save & next / close shortcut key (#8243)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user