window:focus()

{{since('20230320-124340-559cb7b0')}}

Attempts to focus and activate the window.

OSSupported?
macOSYes
WindowsYes
X11Yes
WaylandWayland does not allow this action