Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
480
Disable keyboards doesn't work on webdropdown
posted

Hi,

I have a requirement to disable all user input while a request is processing. So show a mask over the entire page to prevent the user from clicking on it.

However, I still need to block the user from typing on the controls under the mask when the focus already is in some control.

So what I do is: 

$(document).on("keydown keypress keyup", false);

This works on most controls, except the webdropdown, whic stills allows me to change selection with the arrow keys while the screen is supposedly disabled. This is a problem, as they are autopostback and allow me to chain many requests at once.

Why is it still responding if I just disabled the keyboard for the whole document?

Thanks in advance.

Best Regards.

DisableKeyboardDemo.rar
Parents Reply Children
No Data