Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Capturing Esc key from the player


Hi,

I have the following situation: the player is embeded in a modal popup. If the player is set to Full Screen, when I press Esc in IE it also closes the modal popup.

This doesn't happen in FF or Chrome.

Any thoughts on how to fix this ?

Thanks.

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Currently, the “esc in fullscreen” option is something that is configurable on a per-browser basis. It sounds like the modal you’re utilizing may also be listening for this keypress as well. As such, I would suggest looking into the settings for this modal module.

roxin.cernica

User  
0 rated :

I'm not entirely sure what you mean. The modal is indeed listening to Esc however the Esc key doesn't reach the listener in Chrome/FF .

So I was thinking about a way to capture the event when it's pressed in the player and stop propagation.

Andrew

JW Player Support Agent  
0 rated :

Do you have a link to where you’re running this? This might just be operational differences in browsers and their behavior.

This question has received the maximum number of answers.