如何使 Xul 窗口获取来自另一个窗口的所有输入?
我考虑过从另一个窗口监听按键和鼠标事件,但我不知道如何向我的监听器窗口生成此事件。
知道如何将按键和鼠标事件从一个窗口转发到另一个窗口吗?
--更新
可以选择更改当前窗口的焦点。但它不适用于 onload="opener.focus();"
I've thought about listen to the keypress and mouse events from the other window, but I don't know how to generate this event to my listener window.
Any idea how can I forward key and mouse events from a window to another?
--update
To change the focus of the current window would be an option. But it just don't work with onload="opener.focus();"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您可以在子窗口中设置函数并通过 窗口调用父窗口中的函数。开场白。我想以某种方式,您需要调用父级中的函数,这似乎是最简单的方法。
I guess you could set up functions in the child window and call functions in the parent window via window.opener. I guess in some way or another, you need to call a function in the parent, that seems like the simplest way.