We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16307b3 commit f0a3f5fCopy full SHA for f0a3f5f
src/vs/base/browser/dom.ts
@@ -930,6 +930,12 @@ class FocusTracker extends Disposable implements IFocusTracker {
930
}
931
932
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
+ */
939
export function trackFocus(element: HTMLElement | Window): IFocusTracker {
940
return new FocusTracker(element);
941
0 commit comments