How to catch ctrl shortcuts in Flash, such as Ctrl+C, Ctrl+V or Ctrl+X? It’s easy. But it fired in IE.
Many developers have got the problem.
用Flash模擬一些快捷鍵個似乎是個簡單的問題,比如Ctrl+C, Ctrl+V 或 Ctrl+X,用常規的方法,一碰到IE,便失效了。很多兄弟都在叫苦哪。
http://bugs.adobe.com/jira/browse/FP-1838
It’s a horrible bug. I’ve no idea about it until adobe fix it…
Well! Let’s get another way. Use JS! View this page.
http://flexbaba.com/swf/CtrlShortcuts/
這是一個BUG,我們不知道Adobe什么時候能解決,其實我們還可以結合JS來做到。
你看看這個例子,先想想我是如何做到的。
In Chrome and Opera, It dose not work. If you know how to fix it, please tell me. If you use other browsers except IE, I suggest you to detect shortcuts in Flash only.但在Chrome和Opera中,我的實驗遇到挫折,只能通過常規的方式來截獲快捷鍵,這也湊合。如果你知道這是為什么,請告訴我。
Code here: CtrlTest.rar
新聞熱點
疑難解答