MCPcopy Index your code
hub / github.com/microsoft/SandDance / focusFirstChild

Function focusFirstChild

docs/app/js/sanddance-app.js:24606–24613  ·  view source on GitHub ↗
(rootElement)

Source from the content-addressed store, hash-verified

24604 return getPreviousElement(rootElement, currentElement, checkNode, false, true, includeElementsInFocusZones, false, true);
24605}
24606function focusFirstChild(rootElement) {
24607 var element = getNextElement(rootElement, rootElement, true, false, false, true);
24608 if (element) {
24609 focusAsync(element);
24610 return true;
24611 }
24612 return false;
24613}
24614function getPreviousElement(rootElement, currentElement, checkNode, suppressParentTraversal, traverseChildren, includeElementsInFocusZones, allowFocusRoot, tabbable) {
24615 if (!currentElement || !allowFocusRoot && currentElement === rootElement) return null;
24616 var isCurrentElementVisible = isElementVisible(currentElement);

Callers

nothing calls this directly

Calls 2

getNextElementFunction · 0.85
focusAsyncFunction · 0.85

Tested by

no test coverage detected