Intermec barcode scanner returns CTRL-J when scanning
-
- 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
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?
- 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
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.
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.
- 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
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;
}
Who is online
Users browsing this forum: No registered users and 1 guest