Tab button lets "jump" from modal window's controls to contr

I’m using DHMTLX window, I made it modal. But I still can access control’s of the form by using “Tab” button of my keybord (tested in FF and IE). How can I avoid it?


Dear Denis,


the windows component doesn’t block onkeypress event. It just places transparent container over the viewport.


The example of disabling tabbibg in the document:


document.body.onkeydown=function(e){
return (e||event).keyCode!=9;
}