Window onKeyPress

http://webix.com/snippet/3ff24da7

If I set modal to true I can’t use escape key to hide window and I think switching between elements makes problem for onKeyPress.

and I think switching between elements makes problem for onKeyPress.

Can you clarify this point?

I couldn’t reproduce it right now. If it happens again, I let you know.

Also when you are using the above code without iframe it kind of work.
Just load the next page http://webix.com/snippet/m/3ff24da7 and press Escape just after loading, the window widget will be closed.

http://webix.com/snippet/m/87476aef

Just click to MyWin text and then press ESCAPE

Yep, the key event is not bubbling, it will occur only for header and not for window view itself.

And yes, we also agree that current behavior is not very useful and need to be improved.

Hi,
are you finally improving this behavior?

I find very useful to use ESCAPE for closing the window.

Thanks.

You can set a global closing handler like next

http://webix.com/snippet/c08135ca