saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

Close modal on escape #6

Closed rebutatul closed 9 years ago

rebutatul commented 9 years ago

function createModalElement() should contain <div class="modal fade" tabindex="-1"> instead of <div class="modal fade"> ... or an option to add tabindex for "keyboad: true"

Thanks!

saribe commented 9 years ago

hi, you can set the modal options like this: eModal.setModalOptions({ keyboard: true, ... });

rebutatul commented 9 years ago

You're right, that's the correct method.

But the modal container should have tabindex="-1"

Thank you!

saribe commented 9 years ago

I Will fix it asap and let you know. Best.

saribe commented 9 years ago

The ' tabindex="-1"' is supported in V1.0.1!

Thanks for feedback.