Capturing a bubble key event from flash using javascript?

In IE, if the flash has focus and receives the keydown event, it does not seem to bubble the event through the DOM (I cannot capture the event while listening to the document, however the same listener can capture key events from html siblings, so I know that my listener is working).

However, some other plugins on the page (I look at you, Windows Media Player) are still responding to key events that are triggered in flash memory (and I need to prevent this)! It seems that the key event triggered in flash brought the straight line of the bubble straight up (where the vertex is above the document in the DOM hierarchy).

I tried to complete events in as3 and tried different wmodes ... no approach works. Is there something I could miss?

+3
source share
1 answer

Focus the container only swf:

document.getElementById('flash-object').focus();
0
source

Source: https://habr.com/ru/post/1721350/


All Articles