[英]How to use special key combinations in flash/actionscript?
Hi I am building a rich web application using Flash / ActionScript 3 which needs to use special key combinations inside (like Ctrl+R, F5 etc). 嗨,我正在使用Flash / ActionScript 3构建丰富的Web应用程序,该应用程序需要在内部使用特殊的组合键(例如Ctrl + R,F5等)。 But browser looks like always have a priority in processing these combinations.
但是浏览器在处理这些组合时似乎总是具有优先权。 I found a line in Adobe documentation which said that "Browser has a priority in keyboard".
我在Adobe文档中找到一行,上面写着“浏览器在键盘中具有优先级”。
Do you know a way to override this? 您知道一种替代此方法的方法吗?
您可以侦听动作脚本或JavaScript代码中的关键事件,然后调用Event.preventDefault()禁用某些(并非全部)浏览器绑定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.