mac: Fix the focus event of web contents.