Jump to content

Tab key, disable??


Javi
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...