Skip to content

Commit

Permalink
[ACS-5929] Open datatable actions menu on enter (#8868)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Sep 5, 2023
1 parent 60099a2 commit bd518b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
data-automation-id="adf-datatable-main-menu-button"
mat-icon-button
#mainMenuTrigger="matMenuTrigger"
(keydown.enter)="mainMenuTrigger.openMenu()"
[matMenuTriggerFor]="mainMenu">
<mat-icon>more_vert</mat-icon>
</button>
Expand Down Expand Up @@ -323,7 +324,8 @@
[attr.aria-label]="'ADF-DATATABLE.ACCESSIBILITY.ROW_OPTION_BUTTON' | translate"
[title]="'ADF-DATATABLE.CONTENT-ACTIONS.TOOLTIP' | translate"
[attr.id]="'action_menu_right_' + idx"
[attr.data-automation-id]="'action_menu_' + idx">
[attr.data-automation-id]="'action_menu_' + idx"
(keydown.enter)="actionsMenuTrigger.openMenu()">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #menu="matMenu">
Expand Down

0 comments on commit bd518b6

Please sign in to comment.