Safari:window.showModalDialog 将所有按键加倍(Safari for Windows)
我在 这个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过在 document.onkeydown 事件中添加 [return false] 修复。
Fixed by adding [return false] within document.onkeydown event.