Skip to content

ElectronBrowserWindow.getFocusedWindow method

ElectronBrowserWindow › getFocusedWindow

Unofficial

Returns the window that is focused in this application.

Signature:

getFocusedWindow(): ElectronBrowserWindow | null

Returns: ElectronBrowserWindow | nullThe focused BrowserWindow or null if none is focused.