mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user