/* Filename:    ADD FILENAME HERE
 * Description: Suffix Enter example (adds CodeXML 'Enter' command to end of decode, works with USB KB, PS/2 KB modes and with CodeXML Router)
 * Note: only overrides onDecode, thus no effect on manual entry. See Example J015 for better function to overload.
 * Copyright:   2006 The Code Corporation. Please see http://www.codecorp.com/jsLicensing.html for information regarding copyright and grant of license.
 * $Revision: 118 $
 * $Date: 2006-12-05 16:26:51 -0700 (Tue, 05 Dec 2006) $
 */

include(".crx.js");


reader.onDecodeOld = reader.onDecode;

reader.onDecode = function(decode)
{
     decode.data = decode.data + '\x01X\x1ean//n\x04';
                    // \x01X\x1e = CodeXML command prefix
                    // an = CodeXML "an" tag (key command)
                    // / = tag/value separator
                    // /n = Enter key
                    // \x04 = CodeXML command suffix
     
     return reader.onDecodeOld(decode);
}


//EOF
