RED-6382: Fixed ctrl+click functionality.

This commit is contained in:
Nicoleta Panaghiu 2023-07-19 14:39:40 +03:00
parent a5f3747c02
commit d0e06bd6a9
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,10 @@
<ng-container *ngIf="configService.listingMode$ | async as mode">
<div (click)="editFileAttribute($event)" [ngClass]="{ 'workflow-attribute': mode === 'workflow' }" class="file-attribute">
<div
(mousedown)="handleControlClick($event)"
(click)="editFileAttribute($event)"
[ngClass]="{ 'workflow-attribute': mode === 'workflow' }"
class="file-attribute"
>
<div [ngClass]="{ 'workflow-value': mode === 'workflow' }" class="value">
<b *ngIf="mode === 'workflow' && !isInEditMode"> {{ fileAttribute.label }}: </b>
<span

View File

@ -82,6 +82,12 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
}
}
handleControlClick($event: MouseEvent) {
if ($event.ctrlKey) {
$event.stopPropagation();
}
}
ngOnDestroy() {
this.#subscriptions.unsubscribe();
}