Skip to content

Commit

Permalink
Docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Oct 3, 2024
1 parent 31dfe7b commit 26f8705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ckeditor5-utils/src/focustracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { isElement as _isElement } from 'lodash-es';
*/
export default class FocusTracker extends /* #__PURE__ */ DomEmitterMixin( /* #__PURE__ */ ObservableMixin() ) {
/**
* True when one of the registered {@link #elements} or {@link #externalFocusTrackers} is focused.
* True when one of the registered {@link #elements} or {@link #externalViews} is focused.
*
* @readonly
* @observable
Expand All @@ -42,7 +42,7 @@ export default class FocusTracker extends /* #__PURE__ */ DomEmitterMixin( /* #_
* While {@link #isFocused `isFocused`} remains `true`, the focus can move between different UI elements. This property tracks those
* elements and tells which one is currently focused.
*
* **Note**: The values of this property are restricted to {@link #elements} or elements registered in {@link #externalFocusTrackers}.
* **Note**: The values of this property are restricted to {@link #elements} or elements registered in {@link #externalViews}.
*
* @readonly
* @observable
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class FocusTracker extends /* #__PURE__ */ DomEmitterMixin( /* #_
/**
* List of registered DOM elements.
*
* **Note**: The list does do not include elements from {@link #externalFocusTrackers}.
* **Note**: The list does do not include elements from {@link #externalViews}.
*/
public get elements(): Array<Element> {
return Array.from( this._elements.values() );
Expand All @@ -103,7 +103,7 @@ export default class FocusTracker extends /* #__PURE__ */ DomEmitterMixin( /* #_
* * If a {@link module:ui/view~View} instance is passed that has a `FocusTracker` instance ({@link ~ViewWithFocusTracker}),
* the external focus tracker's state ({@link #isFocused}, {@link #focusedElement}) starts contributing to the current tracker instance.
* This allows for increasing the "reach" of a focus tracker instance, by connecting two or more focus trackers together when DOM
* elements they track are located in different subtrees in DOM. External focus trackers are listed in {@link #externalFocusTrackers}.
* elements they track are located in different subtrees in DOM. External focus trackers are listed in {@link #externalViews}.
* * If a {@link module:ui/view~View} instance is passed that has no `FocusTracker` (**not** a {@link ~ViewWithFocusTracker}),
* its {@link module:ui/view~View#element} is used to track focus like any other DOM element.
*/
Expand Down

0 comments on commit 26f8705

Please sign in to comment.