Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by denis on Nov 06, 2009 02:13
open dhtmlx forum
Tab button lets "jump" from modal window's controls to control's of the page

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?
Answer posted by Alex (support) on Nov 06, 2009 04:19

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;
}

   
   

Answer posted by Tnx a lot. on Nov 06, 2009 04:31