Usable Asp.Net

Little things that make Asp.Net more usable

July 2007 - Posts

Data Entry: Use Enter as Tab

A simple javascript will make your Enter key work as Tab. It is useful in large tabular forms.

function enterToTab(){
  if (event.keyCode==13)
    event.keyCode=9;
  }

<input type="text" onkeydown="enterToTab()">

Note using onkeydown event. Onkeypress won't do the trick.

Posted: Jul 30 2007, 03:25 PM by egoldin | with 4 comment(s)
Filed under: