RED-6382: Fixed ctrl+click functionality.
This commit is contained in:
parent
a5f3747c02
commit
d0e06bd6a9
@ -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
|
||||
|
||||
@ -82,6 +82,12 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
|
||||
}
|
||||
}
|
||||
|
||||
handleControlClick($event: MouseEvent) {
|
||||
if ($event.ctrlKey) {
|
||||
$event.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.#subscriptions.unsubscribe();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user