Onkeyup; Onkeypress - Intermec 730 User Manual

Intermec 730: user guide
Hide thumbs Also See for 730:
Table of Contents

Advertisement

70

OnKeyUp

The OnKeyUp event is fired when a key on the physical or onscreen
keyboard is released and the ITCAXEdit control has focus. No return value
is required.
Syntax
Void OnKeyUp(int key)
Parameter
Description
key
An integer value that holds the ASCII code of the key pressed.
Example
When a key is released, display an alert.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID="IBEAX1" CLASSID="CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9" WIDTH="50" HEIGHT="25">
</BODY>
<SCRIPT LANGUAGE="JSCRIPT" FOR="IBEAX1" EVENT="OnKeyUp()">
alert('A key up was received');
</SCRIPT>
</HTML>

OnKeyPress

The OnKeyPress event is fired when a key on the physical or onscreen
keyboard is pressed and the ITCAXEdit control has focus. To leave the key
value as-is, set the return value to 0. To cancel the key press or have another
key value replace the value passed, set the value to –1.
Syntax
int OnKeyPress(int key)
Parameter
Description
key
An integer value that holds the ASCII code of the key pressed.
iBrowse User's Guide

Advertisement

Table of Contents
loading

Table of Contents