Support focus event handlers.

[NEW] Add focus event handlers.