From 1ba3a28ded96f82f2358a35daf66ce70c32cdaa0 Mon Sep 17 00:00:00 2001 From: Masum ULU Date: Tue, 20 Jun 2023 23:39:09 +0300 Subject: [PATCH] fix lint errors --- .../packages/core/src/lib/directives/caps-lock.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/core/src/lib/directives/caps-lock.directive.ts b/npm/ng-packs/packages/core/src/lib/directives/caps-lock.directive.ts index 0194bb9d3e..16b3c40757 100644 --- a/npm/ng-packs/packages/core/src/lib/directives/caps-lock.directive.ts +++ b/npm/ng-packs/packages/core/src/lib/directives/caps-lock.directive.ts @@ -5,7 +5,7 @@ import { Directive, EventEmitter, HostListener, Output } from '@angular/core'; selector: '[abpCapsLock]', }) export class TrackCapsLockDirective { - @Output('abpCapsLock') capsLock = new EventEmitter(); + @Output('abpCapsLock') capsLock = new EventEmitter(); @HostListener('window:keydown', ['$event']) onKeyDown(event: KeyboardEvent): void { @@ -17,7 +17,7 @@ export class TrackCapsLockDirective { } isCapsLockOpen(e): boolean { - var s = String.fromCharCode(e.which); + const s = String.fromCharCode(e.which); if ( (s.toUpperCase() === s && s.toLowerCase() !== s && e.shiftKey) || (s.toUpperCase() !== s && s.toLowerCase() === s && e.shiftKey) ||