检测 Firefox 应用程序何时失去焦点
我正在开发一个 Firefox 扩展,每次浏览器失去焦点时都需要收到通知。我该怎么做?我尝试观察 user-interaction-inactive
但这对于每个 Firefox 实例仅触发一次。
还有其他选择吗?
I am developing a Firefox extension that needs to be notified each time the browser loses focus. How can I do this? I tried observing user-interaction-inactive
but this only fires once for each instance of firefox.
Any alternatives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误的答案假设扩展附加到 Firefox 窗口(但无论哪种方式,你都会理解如何使用我的答案)
希望它有帮助
ill answer assuming the extesion is attach to firefox window ( but either way youll understand how to use my answer )
hope it helps