Java-Applet 将不会在 Firefox 中释放焦点
我有一个带有一些文本字段的 Java Applet。当我单击任何文本字段时,它会获得焦点,我会看到插入符号,并且可以编写文本。好的。
但现在我在浏览器的地址字段中点击,我得到了第二个插入符号,并且任何 KeyEvent 都由 Applet 调度,因此我无法在浏览器中输入新的 URL。该 url 被写入我的 Applet 文本字段。
它适用于镀铬。但火狐不行。
更新
它也适用于 Firefox 9。但在 Firefox 10 中不行。
I have an Java Applet with some TextFields. When I Click in any TextField, it gets the focus, I see the caret and I can write my text. OK.
But now I ckick in the address field of the Browser, I get a second caret and any KeyEvent is dispachted by the Applet, so I can't type in a new URL in the Browser. This url is written to my Applet textfield.
It works with chrome. But not with firefox.
update
It works in firefox 9, too. But not in firefox 10.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对此没有最终答案,但我可以确认我遇到了同样的问题,并且重新安装 FF9 可以解决该问题。我尝试了小程序组件的各种焦点设置,以查看它们是否相关,但似乎没有任何方法可以解决此问题,除了:
更新
在 FF 论坛中得到了对此的回复:
https: //bugzilla.mozilla.org/show_bug.cgi?id=718939
请参阅评论#40。那里引用的补丁版本解决了我的问题。他们说应该很快就会正式发布。
I don't have the final answer on this one, but I can confirm that I am having the same problem, and reinstalling FF9 fixes the issue. I have tried various focus settings of the applet components to see if they were related but nothing seems to work around this problem except:
Update
Got a response in the FF forums on this one:
https://bugzilla.mozilla.org/show_bug.cgi?id=718939
See comment #40. The patch build referenced there fixed the problem for me. They say it should be officially released soon.