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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -