f3oall / awesome-notifications

Lightweight JavaScript Notifications Library
https://f3oall.github.io/awesome-notifications/
MIT License
292 stars 40 forks source link

Prevent from closeing with Esc #40

Closed hadi4172 closed 4 years ago

hadi4172 commented 4 years ago

Is your feature request related to a problem? Please describe. I need to force the user to do something on the confirm popup, however this can't happen if the user close it with the esc button

Describe the solution you'd like Can you add an option to prevent the modal from closing on esc button keypress ?

Describe alternatives you've considered I tried to remove all the keypress keylisteners but its very not optimal.

Thank you

hadi4172 commented 4 years ago

I finally just had to delete some chars in the code of the library so it's fine.

manchumahara commented 1 year ago

Anyway to prevent closing clicking outside and display a close button in modal ?