简体   繁体   English

在nsiWindowWatcher或nsiWindowMediator上监听焦点/模糊? 用于Firefox扩展

[英]listen for focus/blur on nsiWindowWatcher or nsiWindowMediator? for firefox extension

I would like to find out whether or not the main browser window is focused. 我想找出浏览器主窗口是否聚焦。 Is this possible to achieve using nsiWindowWatcher or nsiWindowMediator? 使用nsiWindowWatcher或nsiWindowMediator是否可以实现? Been trying to digging Mozilla's documentation with no luck so far.. 到目前为止,一直在努力地挖掘Mozilla的文档。

Firefox addon/jetpack is not an option though Firefox插件/ jetpack不是一个选项

没关系,主js文件上的addEventListener('focus'/'blur')工作正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM