Skip to content

Plugin: CreateFocusScopeManager

Methods

activateScope

Source code

createFocusScopeManager~activateScope(scope, focusSource)

Activates a specific scope.

ParamTypeDescription
scopeobjectThe scope to activate.
focusSource'unknown'
'click'
'tab_from_above'
'tab_from_below'
The source of the focus event.

deactivateScope

Source code

createFocusScopeManager~deactivateScope(scope)

Deactivates a scope by its ID.

ParamTypeDescription
scopeobjectThe scope to deactivate.

processScopes

Source code

createFocusScopeManager~processScopes(target, focusSource)

Activates or deactivates the appropriate scope based on the target element that was triggered by the focus or click event.

ParamTypeDescription
targetHTMLElementThe target element.
focusSource'unknown'
'click'
'tab_from_above'
'tab_from_below'
The source of the focus event.

updateScopesFocusVisibilityState

Source code

createFocusScopeManager~updateScopesFocusVisibilityState()

Updates the focus scopes state by enabling or disabling them or their focus catchers to make sure that the next native focus move won’t be disturbed.