@snabcentr/client-ui 0.30.0 → 0.30.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3147,6 +3147,9 @@ class ScNextInputFocusDirective {
3147
3147
  * @param event Объект события нажатия на клавишу.
3148
3148
  */
3149
3149
  onFormKeyDownEnter(event) {
3150
+ if (event.code !== 'Enter') {
3151
+ return;
3152
+ }
3150
3153
  event.preventDefault();
3151
3154
  const elements = this.focusableElements.toArray();
3152
3155
  const focusedIndex = elements.findIndex((control) => control.focused);
@@ -3159,7 +3162,7 @@ class ScNextInputFocusDirective {
3159
3162
  }
3160
3163
  }
3161
3164
  ScNextInputFocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScNextInputFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3162
- ScNextInputFocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ScNextInputFocusDirective, selector: "form[ScNextInputFocus]", host: { listeners: { "keydown.enter": "onFormKeyDownEnter($event)" } }, queries: [{ propertyName: "focusableElements", predicate: AbstractTuiControl, descendants: true }], ngImport: i0 });
3165
+ ScNextInputFocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ScNextInputFocusDirective, selector: "form[ScNextInputFocus]", host: { listeners: { "keydown": "onFormKeyDownEnter($event)" } }, queries: [{ propertyName: "focusableElements", predicate: AbstractTuiControl, descendants: true }], ngImport: i0 });
3163
3166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ScNextInputFocusDirective, decorators: [{
3164
3167
  type: Directive,
3165
3168
  args: [{
@@ -3170,7 +3173,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3170
3173
  args: [AbstractTuiControl, { descendants: true }]
3171
3174
  }], onFormKeyDownEnter: [{
3172
3175
  type: HostListener,
3173
- args: ['keydown.enter', ['$event']]
3176
+ args: ['keydown', ['$event']]
3174
3177
  }] } });
3175
3178
 
3176
3179
  /**