Enable automatic field advance

For ZIETrans Web applications, the auto advance feature depends on the current character count and field length to decide the time of advance. When the Show unprotected Shift Out/Shift In characters as spaces setting in the DBCS section of the Rendering tab is not selected, the character count never reaches the field limit if a DBCS character is in the field. So for ZIETrans Web applications, if you need the auto advance function in the DBCS environment, you must select the Show unprotected Shift Out/Shift In characters as spaces setting.

When using the IME to input data into a field, two tables in the KBS.js file are used to define keys that trigger auto advance. A set of default triggering keys is provided. If necessary, you can edit the tables in the KBS.js file to change the defaults. To edit the KBS.js file, from the Navigator view double-click the file, which is located in the project_name\Web Content\common folder. The following example shows the default keys defined in the two tables. For example, the ALT + SBCS/DBCS (keycode 25) key combination is a default triggering key. To add a key, enter its keycode (either its variable name defined in the KBS.js file or its numeric value) and a key modifier (ALT, CTRL, or Shift) as appropriate. For how to determine the keycode value for a given key on the keyboard, see Determining keycode values.

var IMEkeysForKeyUp = [ 
//-Keycode----ALT-CTRL-Shift----// 
[  CODE_ENTER,  0,  0,  0  ],
[  CODE_M,      0,  1,  0  ],
[  CODE_ENTER,  0,  1,  0  ]
];

var IMEkeysForKeyDown = [ 
//-Keycode----ALT-CTRL-Shift----// 
[  25,          1,  0,  0  ] //ALT + SBCS/DBCS key
];