Java-Applet 将不会在 Firefox 中释放焦点

发布于 2025-01-02 10:13:50 字数 272 浏览 2 评论 0原文

我有一个带有一些文本字段的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗心遗梦遗幸福 2025-01-09 10:13:50

我对此没有最终答案,但我可以确认我遇到了同样的问题,并且重新安装 FF9 可以解决该问题。我尝试了小程序组件的各种焦点设置,以查看它们是否相关,但似乎没有任何方法可以解决此问题,除了:

  1. 点击 Windows-Tab。看来是要解锁了
  2. 我的小程序中有一个按钮可以打开文件选择器。单击该按钮并取消即可解锁。当我再次单击小程序的某个区域时,我无法再在位置或搜索栏中输入内容。

更新

在 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:

  1. Hit Windows-Tab. That seems to unlock it.
  2. I have a button in my applet that brings up a file chooser. Clicking that and cancelling unlocks things. The moment I click in an area of the applet again I can no longer type in the location or search bar.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文