chrome下选中embed嵌入的npapi插件,chrome收不到onkeydown事件
如题,npapi插件封装了IE的ATL COM,供chrome页面访问。
之前IE页面中选中控件时,单击按键,IE浏览器能接收到按键响应,然后调用ATL的接口下发快捷键到控件。
现在在chrome浏览器使用时,发现选中npapi控件后,单击快捷键时,浏览器根本收不到。
如下:选中id=b的div时,单击按键onkeydown能得到响应,但选中id=a的div(含np插件的div)则得不到响应。
<div id=b><div tabIndex=0 onkeydown="alert('11');" contenteditable1="true">
<embed id="SunScan2" WIDTH=100% HEIGHT=10% "/></div></div>
<div id=a><div tabIndex=0 onkeydown="alert('22');" contenteditable="true">
<embed id="SunScan" type="application/SunScan" WIDTH=100% HEIGHT=70% wmode="transparent" /></div></div>
有没有碰到或解决过类似问题的朋友,帮忙指点下,多谢。