From 37e5ef8c3e02c986696ba3b01287b3b2e20813b5 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Tue, 2 May 2023 14:39:11 +0200 Subject: [PATCH] [editor] Enable backspace key selection only for custom input assistance For all other input assistance presets, the status of the backspace key is fixed. --- .../text-field-element-properties.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/text-field-element-properties.component.ts b/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/text-field-element-properties.component.ts index afa65f210..31f04a3eb 100644 --- a/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/text-field-element-properties.component.ts +++ b/projects/editor/src/app/components/properties-panel/model-properties-tab/input-groups/text-field-element-properties.component.ts @@ -165,8 +165,12 @@ import { CombinedProperties } from 'editor/src/app/components/properties-panel/e {{'propertiesPanel.hasArrowKeys' | translate }} </mat-checkbox> - <mat-checkbox *ngIf="combinedProperties.inputAssistancePreset === 'custom'" - [checked]="$any(combinedProperties.hasBackspaceKey)" + <mat-checkbox *ngIf="combinedProperties.inputAssistancePreset !== null && + combinedProperties.hasBackspaceKey !== undefined" + [disabled]="combinedProperties.inputAssistancePreset !== 'custom'" + [checked]="combinedProperties.inputAssistancePreset === 'custom' ? + $any(combinedProperties.hasBackspaceKey) : + combinedProperties.inputAssistancePreset !== 'french'" (change)="updateModel.emit({ property: 'hasBackspaceKey', value: $event.checked })"> {{'propertiesPanel.hasBackspaceKey' | translate }} </mat-checkbox> -- GitLab