Register  ::  Login

February 09, 2012

Forums
 
Subject: Change [Enter] to [Tab]
Prev Next
You are not authorized to post a reply.

Author Messages
DonUser is Offline
New Member
New Member
Posts:20


06/09/2005 9:04 AM  
We've got wedge type scanners that automatically send and [Enter]
keystroke (#13) after a scan which was triggering the form submit on
every scan. This code adds a little javascript to change the #13
received when in an edit control to a [Tab] char (#9):



Textbox.Attributes.Add('if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) {event.keyCode=9;} ');



You are not authorized to post a reply.