diff --git a/projects/ng-aquila/src/popover/popover-trigger.directive.ts b/projects/ng-aquila/src/popover/popover-trigger.directive.ts index 2a1a3c5d9..e87527dab 100644 --- a/projects/ng-aquila/src/popover/popover-trigger.directive.ts +++ b/projects/ng-aquila/src/popover/popover-trigger.directive.ts @@ -1,7 +1,7 @@ import { ConfigurableFocusTrap, ConfigurableFocusTrapFactory, FocusMonitor } from '@angular/cdk/a11y'; import { Directionality } from '@angular/cdk/bidi'; import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; -import { ENTER, SPACE } from '@angular/cdk/keycodes'; +import { ENTER, SPACE, TAB } from '@angular/cdk/keycodes'; import { ConnectionPositionPair, FlexibleConnectedPositionStrategy, @@ -231,6 +231,11 @@ export class NxPopoverTriggerDirective implements AfterViewInit, OnDestroy, OnIn case ENTER: this.handleClick(); break; + case TAB: + if (this.trigger === 'hover') { + this.show = !this.isOpen; + } + break; default: } });