Window.onActivate

void onActivate ()

Description

An event-handler callback function, called when the window acquires the keyboard focus.

Called when the user gives the window the keyboard focus by clicking it or otherwise making it the active window.