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

Function focusMenuBar

src/cdk/menu/menu-bar.spec.ts:97–102  ·  view source on GitHub ↗

Set focus to the MenuBar and run change detection.

()

Source from the content-addressed store, hash-verified

95
96 /** Set focus to the MenuBar and run change detection. */
97 function focusMenuBar() {
98 dispatchKeyboardEvent(document, 'keydown', TAB);
99 nativeMenuBar.focus();
100
101 detectChanges();
102 }
103
104 beforeEach(() => {
105 fixture = TestBed.createComponent(MultiMenuWithSubmenu);

Callers 3

menu-bar.spec.tsFile · 0.85
openFileMenuFunction · 0.85
openFontMenuFunction · 0.85

Calls 3

dispatchKeyboardEventFunction · 0.85
detectChangesFunction · 0.70
focusMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…