I'm using a bootstrap modal popup to display a html5 video element inside it. Like following picture.
When the user enables the full-screen mode of video it works perfectly fine as the following photo.
However, when an escape button is pressed while video is being played on full-screen mode, it not just gets out of full-screen mode but the popup too. I don't want popup to disappear instead the video must be restored along with the opened popup. Also popup should act normally on escape for other modes.
Note: I think when user presses esc button a listener on popup listens it and act accordingly. In my opinion, how to halt that behavior while video is on full-screen mode, is what which can help here. On the other hand if there's no keyboard interaction everything works smoothly.
Thanks in advance.