Example – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual

Page 28

Advertising
background image

N

AURTECH

W

EB

B

ROWSER

S

MART

C

LIENTS FOR

W

INDOWS

CE .NET / P

OCKET

PC




Web Browser Programming Guide

Page 28


format yields HTML that is easier to read and maintain. See OnAllKeys to direct
all key input to a single action.

Although most VK codes are uniform across devices, some devices can remap
the keyboard at a driver level to change the VK codes. Consult your hardware
documentation to understand what VK codes are generated by the keys on your
device.

Please note that some keys may be tied to operating system actions and they
may not be sent to the running applications, thus they cannot be used. Other
times, they are tied to an action and will still be sent to the application, so you
may see side-effects of their use.

All key shift states such as CTRL, ALT, and Shift are ignored by the OnKey
action. However, it is possible to use shift states via key remapping as described
below. We recommended that you do

not

assign OnKey actions to the CTRL,

ALT, or SHIFT keys themselves.

The Naurtech Web Browser has very flexible key remapping features. In most
cases, any user action which simulates a key, such as a KeyBar button or
scanner post-amble will invoke the OnKey action. For example, you may remap
Shift+”1” within the Web Browser key remapping to perform the F1 key action.
When Shift+”1” is pressed in a browser session, the OnKey action for F1 will be
invoked. Tapping on an “F1” KeyBar button will also invoke the OnKey action.

Unlike the Naurtech Web Browser, some other browsers do not act on OnKey
assignments when the focus is in a native text INPUT element or in an ActiveX
text component. Under Pocket PC and Windows Mobile 2003, the
“OnKeyIgnoreInText” tag can be used to ignore the OnKey assignments when
the focus is in a native text input element or in a TextX input object. The content
is ignored for “OnKeyIgnoreInText”

There is no limit to the number of OnKey assignments within a page.

Example

<html>
<head>
<meta http-equiv="OnKey0x1B"
content="javascript:document.form[0].clearbutton.click();"><! ESC >
<meta http-equiv="OnKey0x31" content="/cyclecount.htm"><! 1>
<meta http-equiv="OnKey0x32" content="/inventory.htm"><! 2 >
<meta http-equiv="OnKey0x33" content="/receiving.htm"><! 3 >
<meta http-equiv="OnKey0x41" content="ida:IDA_PROGRAM_ABOUT"><! A >
</head>

Advertising