CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/app/util.ts
Views: 687
1
export function blur_active_element(): void {
2
if (document.activeElement == null) return;
3
// otherwise, it'll be highlighted even when closed again
4
(document.activeElement as any).blur?.();
5
}
6
7