MCPcopy Index your code
hub / github.com/angular/components / openShareMenu

Function openShareMenu

src/cdk/menu/menu-bar.spec.ts:281–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279 }
280
281 function openShareMenu() {
282 dispatchKeyboardEvent(nativeMenus[0], 'keydown', DOWN_ARROW);
283 dispatchKeyboardEvent(document.activeElement!, 'keydown', RIGHT_ARROW);
284 detectChanges();
285 }
286
287 it('should open the submenu with focus on item with menu on right arrow press', () => {
288 openFileMenu();

Callers 1

menu-bar.spec.tsFile · 0.85

Calls 3

dispatchKeyboardEventFunction · 0.85
dispatchMouseEventFunction · 0.85
detectChangesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…