diff --git a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts index e4bf548c5a4bbb74943713a270e4d84334de11ee..46a5d11184772c061c1f2e61b4c00938470a4b8e 100644 --- a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts +++ b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts @@ -62,7 +62,7 @@ export class CompoundGroupElementComponent extends ElementFormGroupDirective imp .onFocusChanged .pipe(takeUntil(this.ngUnsubscribe)) .subscribe(element => { - this.onFocusChanged(element, textFieldSimpleComponent, childModel); + this.toggleKeyInput(element, textFieldSimpleComponent, childModel); }); (child as TextFieldSimpleComponent) .onKeyDown @@ -74,7 +74,7 @@ export class CompoundGroupElementComponent extends ElementFormGroupDirective imp }); } - private onFocusChanged(inputElement: HTMLElement | null, + private toggleKeyInput(inputElement: HTMLElement | null, elementComponent: TextFieldSimpleComponent, elementModel: InputElement): void { if (elementModel.inputAssistance) { diff --git a/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.html b/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.html index f80152ad0ae33848f06e943f1b244e1ed24e4c42..7df65221adefadd4d7b32129bf663c3eee616c24 100644 --- a/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.html +++ b/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.html @@ -6,7 +6,7 @@ [parentForm]="form" [elementModel]="elementModel | cast: TextAreaElement" (hardwareKeyDetected)="detectHardwareKeyboard($event, elementComponent)" - (focusChanged)="onFocusChanged($event, elementComponent)"> + (focusChanged)="toggleKeyInput($event, elementComponent)"> </aspect-text-area> <aspect-text-field *ngIf="elementModel.type === 'text-field'" @@ -14,7 +14,7 @@ [parentForm]="form" [elementModel]="elementModel | cast: TextFieldElement" (hardwareKeyDetected)="detectHardwareKeyboard($event, elementComponent)" - (focusChanged)="onFocusChanged($event, elementComponent)"> + (focusChanged)="toggleKeyInput($event, elementComponent)"> </aspect-text-field> <aspect-spell-correct *ngIf="elementModel.type === 'spell-correct'" @@ -22,7 +22,7 @@ [parentForm]="form" [elementModel]="elementModel | cast: SpellCorrectElement" (hardwareKeyDetected)="detectHardwareKeyboard($event, elementComponent)" - (focusChanged)="onFocusChanged($event, elementComponent)"> + (focusChanged)="toggleKeyInput($event, elementComponent)"> </aspect-spell-correct> </form> diff --git a/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.ts b/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.ts index 42b07487c0280559ebf2ffd8f6d07b7c455f7dc1..07a551f16818d5c9c73adf7670a76d6ec45bad53 100644 --- a/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.ts +++ b/projects/player/src/app/components/elements/text-input-group-element/text-input-group-element.component.ts @@ -61,7 +61,7 @@ export class TextInputGroupElementComponent extends ElementFormGroupDirective im ); } - onFocusChanged(inputElement: HTMLElement | null, + toggleKeyInput(inputElement: HTMLElement | null, elementComponent: TextAreaComponent | TextFieldComponent | SpellCorrectComponent): void { if (this.elementModel.inputAssistance) { this.isKeypadOpen = this.keypadService.toggle(inputElement, elementComponent);