Skip to content

Commit f0a3f5f

Browse files
authored
add jsdoc comment for trackFocus (microsoft#180690)
1 parent 16307b3 commit f0a3f5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/base/browser/dom.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,12 @@ class FocusTracker extends Disposable implements IFocusTracker {
930930
}
931931
}
932932

933+
/**
934+
* Creates a new `IFocusTracker` instance that tracks focus changes on the given `element` and its descendants.
935+
*
936+
* @param element The `HTMLElement` or `Window` to track focus changes on.
937+
* @returns An `IFocusTracker` instance.
938+
*/
933939
export function trackFocus(element: HTMLElement | Window): IFocusTracker {
934940
return new FocusTracker(element);
935941
}

0 commit comments

Comments
 (0)