Intermec barcode scanner returns CTRL-J when scanning

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Margaret Hawkes
New User
Posts: 1
Joined: Tue Aug 14, 2012 12:41 pm
First Name: Margaret
Last Name: Hawkes
Company Name: Nippon Express
Contact:

Intermec barcode scanner returns CTRL-J when scanning

Post by Margaret Hawkes »

I have plugged in an intermec bardoce scanner into my lapto to check out a barcode scanning application. I scan the required fired, the scanner bleeps and returns the scanned data terminated by CTRL-J. This means that the favorites box is opened every time in internet explorer. In Firefox, it is the download list. How can I get round this problem?
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: Intermec barcode scanner returns CTRL-J when scanning

Post by Rob »

A couple of options here. The simplest would be to look at the scanner and see if can be configured to send another character other than CTRL-J (ENTER for example) at the end of the scanned data. I would expect this could be changed.

The second option would be to add some JavaScript code to trap the keyboard event so the CTRL-J would be ignored.

I could provide a js code snippet to help here but I would try the scanner configuration first.
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: Intermec barcode scanner returns CTRL-J when scanning

Post by Rob »

here is some code to trap CTRL J

Code: Select all

document.onkeypress=function(e){
 var e=window.event || e
  
 if (e.charCode && ( e.charCode==106 || e.charCode==74) && e.ctrlKey)
  return false;

 return true;
}
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests