Safari:window.showModalDialog 将所有按键加倍(Safari for Windows)

发布于 2024-12-10 07:21:00 字数 387 浏览 2 评论 0原文

我在 这个 Firefox 文档中注意到 Safari 5.1 引入了对 window.showModalDialog() 的支持功能。我尝试了一下,由于某种原因,模式对话框中表单元素中的所有击键都会加倍。

您可以在这里尝试(Windows 需要 Safari 5.1 或更高版本):http://jsfiddle.net/RF2cV/

有任何线索如何解决这个问题吗?

感谢您的帮助!

I noticed in this firefox documentation Safari 5.1 introduces support for a window.showModalDialog() function. I tried it out, and for some reason all keystrokes in form elements in the modal dialog get doubled up.

You can try it out here (Safari 5.1 or greater for Windows required): http://jsfiddle.net/RF2cV/

Any clue how to remedy this?

Thanks for your help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

城歌 2024-12-17 07:21:00

通过在 document.onkeydown 事件中添加 [return false] 修复。

Fixed by adding [return false] within document.onkeydown event.

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