mirari / vue-fullscreen

A simple Vue.js component for fullscreen
MIT License
439 stars 50 forks source link

Override Escape Key #18

Closed SmarterPhoneLabs closed 3 years ago

SmarterPhoneLabs commented 5 years ago

Hello, Is it possible to make it where the escape key can be suppressed or ignored with this component? I have a component which I am trying to use this on that launches other modal dialogs. The escape key is intended to be used to close my modals, however, I can not seem to bypass this functionality by overriding and preventing propagation on my own.

Can you add an option to ignore the esape key to your code ?

mirari commented 5 years ago

I'm afraid it won't work. Exiting the full screen is a browser-level operation and cannot be blocked by blocking the escape key.

SmarterPhoneLabs commented 5 years ago

Yeah, I was able to research that on my own as well. It's ok, thanks for replying

On Thu, Apr 18, 2019 at 10:21 PM mirari notifications@github.com wrote:

I'm afraid it won't work. Exiting the full screen is a browser-level operation and cannot be blocked by blocking the escape key.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mirari/vue-fullscreen/issues/18#issuecomment-484755627, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJCVZNNRZJASZ776BKYK43PRE3FDANCNFSM4HG5JJBQ .