ESC doesn't close lightbox when input field not focused

Hi,
I noticed, that when I don’t have focus on input element, I am not able to close it using ESC key.
The same is when I hit ESC after choosing radio option or checking checkbox.

When I put focus on text input field or textarea, it closes as expected.

Tested on dhtmlxScheduler 3.5 + Google Chrome 22.0.1229.94 / Firefox 16.0.2
Martin

Hello,

This is expected behavior.
Consider following use case: you opened lightbox and then switched to work with another form on you site. You press ESC there and suddenly your lightbox disappears.

Maybe there should be additional config option on where to listen for ESC key for lightbox - on lightbox only or directly on whole ducment.

Thank you for the feedback.

Kind regards,
Ilya

Yes, that makes sense.
I solved it with explicit .focus().