window:focus()

Since: nightly builds only

Attempts to focus and activate the window.

OSSupported?
macOSYes
WindowsYes
X11Yes
WaylandWayland does not allow this action