Godofbrowser / vuejs-dialog

A lightweight, promise based alert, prompt and confirm dialog
351 stars 109 forks source link

Prevent escape #65

Open kopeccc opened 5 years ago

kopeccc commented 5 years ago

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

Godofbrowser commented 5 years ago

Hello @kopeccc

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

kopeccc commented 4 years ago

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..

Godofbrowser commented 4 years ago

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

kopeccc commented 4 years ago

Thank you @Godofbrowser