feat: support menuOpenEvent, menuSelectEvent, location for context menu items (#8877)

* feat: support menuOpenEvent, menuSelectEvent, location for context menu items

* feat: show context menu based on location

* fix: rtl
This commit is contained in:
Maribeth Moffatt
2025-04-11 15:10:05 -07:00
committed by GitHub
parent 3160e3d321
commit d1dc38f582
8 changed files with 156 additions and 42 deletions

View File

@@ -379,7 +379,7 @@ export class Menu {
const menuItem = this.getMenuItem(e.target as Element);
if (menuItem) {
menuItem.performAction();
menuItem.performAction(e);
}
}
@@ -431,7 +431,7 @@ export class Menu {
case 'Enter':
case ' ':
if (highlighted) {
highlighted.performAction();
highlighted.performAction(e);
}
break;