java - Globally Disable Tab Key on Page -
how can globally disable use of tab key on page? found question, uses jquery , not using jquery. know can set tabindex equal -1 disable keyboard focus, gwt web application uses gwt-ext, mixed smartgwt, , openlayers easier set once in page entire set of controls (and there on hundred different controls).
you can use this:
window.onkeydown = function() { if (event.keycode == 9) { event.preventdefault(); } }
i checked entering in console of google chrome , disables tab key.
Comments
Post a Comment