Sweetalert: Close with the esc key

Created on 4 Dec 2014  路  7Comments  路  Source: t4t5/sweetalert

Can you add a cool (and simple) feature for the UX : the window with the escape key ?

enhancement

Most helpful comment

This has now been added as a feature through allowEscapeKey (true by default). Thanks for your help guys!

All 7 comments

There's already functionality in there to close with the scape key - it's only allowed when there's a cancel button though. Matches the behaviour of native alert/confirm.

I accept Peterjosling Answer. Thanks

I believe this is a duplicate of #131 (for which I've opened a PR to fix).

It seems like this repo is inactive now, I fixed this and added some additional features to sweetalert2.

This issue has been fixed, as noted in #132.

This has now been added as a feature through allowEscapeKey (true by default). Thanks for your help guys!

Old but goooood :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xgqfrms-GitHub picture xgqfrms-GitHub  路  4Comments

rapeflower picture rapeflower  路  4Comments

waldyrious picture waldyrious  路  5Comments

blackrosezy picture blackrosezy  路  6Comments

fracz picture fracz  路  4Comments