Jump to content

Tab key, disable??


Javi

Recommended Posts

  • 4 weeks later...
  • Administrators

Hello

 

It is possible, disable the tab key. How?

thanks

Javi

 

-------------------------------

 

Hola

 

Es posible, deshabilitar la tecla tabulador. ¿Cómo ?

Gracias

Javi

 

Add below code to MainForm.Script

 

if (typeof window.event != 'undefined') { /* IE */
  document.onkeydown = function() /* IE */ 
  {
   	var kc=event.keyCode;
   	return (kc != 9);
  }
} else {
  document.onkeypress = function(e) /* FireFox/Others */ 
  {
   	var kc=e.keyCode;
   	return (kc != 9);
  }
}


Link to comment
Share on other sites

Dosn't work on Google Crome and only work with edit box (grid, checkbox ecc. accept tab).

 

tnks

 

Add below code to MainForm.Script

 

if (typeof window.event != 'undefined') { /* IE */
  document.onkeydown = function() /* IE */ 
  {
   	var kc=event.keyCode;
   	return (kc != 9);
  }
} else {
  document.onkeypress = function(e) /* FireFox/Others */ 
  {
   	var kc=e.keyCode;
   	return (kc != 9);
  }
}


Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...