ElectronTray.focus method
ElectronTray › focus
Unofficial
Returns focus to the taskbar notification area. Notification area icons should use this message when they have completed their UI operation. For example, if the icon displays a shortcut menu, but the user presses ESC to cancel it, usetray.focus() to return focus to the notification area. win32 only. Signature:
focus(): voidReturns: void