Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by user on Mar 26, 2009 06:14
open dhtmlx forum
dhtmlx window setModal issue

hi,

we are using dhtmlx window in our application, when we use setModel(true) the background is blur and user wont allow to access any thing which is wonderful. But my question is

Through mouse he cant access any thing but through keyboard he can navigate any element in the background and can change the values. how to control that.

we are using dhtmlx2.0 complete version.
Answer posted by Alex (support) on Mar 26, 2009 08:11

Hello, 

It is correct behavior. setModal sets the transparent container over the page content, but it doesn't block events on the page.

Unforunately there is no univesal solution to block absolutely all onkeydown events. In each separate case case it must be done differently. 

You can try to use the following approach to block keyboard actions:

document.body.onkeydown = function(e){

return false

}