Godofbrowser/vuejs-dialog

Prevent escape

kopeccc opened this issue · 4 comments

Hello,
is there any possibility to prevent close dialog when ESC is pressed?
Thank you for any answer :)

Hello @kopeccc

That configuration is not available at this time. Can you help me understand why this functionality may be needed?

Hello,
I am using your vuejs-dialog as a custom component to collect some data from user. There are some other components on my dialog, that uses ESC to cancel an input form user too. But this cancels whole dialog :( It would be great to disable ESC key press event in vuejs-dialog config ;)
Regards..

This is doable @kopeccc . Will try adding it to the configurations over the weekend, however pull requests are welcome if someone wants to pick this up too

Thank you @Godofbrowser