diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts index a57c30e43..1b5deaff9 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts @@ -15,6 +15,7 @@ import { JsonPipe, NgForOf, NgIf } from '@angular/common'; import { HighlightsSeparatorComponent } from '../highlights-separator/highlights-separator.component'; import { AnnotationWrapperComponent } from '../annotation-wrapper/annotation-wrapper.component'; import { AnnotationReferencesListComponent } from '../annotation-references-list/annotation-references-list.component'; +import { Clipboard } from '@angular/cdk/clipboard'; @Component({ selector: 'redaction-annotations-list', @@ -54,11 +55,15 @@ export class AnnotationsListComponent extends HasScrollbarDirective { private readonly _annotationManager: REDAnnotationManager, private readonly _listingService: AnnotationsListingService, readonly annotationReferencesService: AnnotationReferencesService, + private readonly clipboard: Clipboard, ) { super(_elementRef); } annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): void { + if ($event.ctrlKey && $event.altKey) { + this.clipboard.copy(annotation.id); + } if (this._userPreferenceService.isIqserDevMode) { console.log('Selected Annotation:', annotation); }