参考 focused

focused

当浏览器获得焦点时,

布尔值true ,否则为 false

注意:只有当浏览器窗口获得焦点时才能接收输入。

示例

Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!

相关参考