Int onkeypress( int akey ), Void onkeyup( int vkey ) – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual

Page 62

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 62


may also be called when keys are simulated within the Web Browser via KeyBar
buttons or remapped physical keys.

int OnKeyPress( int akey )
The OnKeyPress handler is called when a key is pressed which generates an
ASCII character. The akey argument contains the ASCII character which is
generated. The return value from this handler controls the event propagation. A
return value of 0 will continue the event, a value of -1 will cancel the event. Any
positive value will replace the akey in this event. This handler is called before
the character is placed in the input object, so changing the return value will
change the character placed in the object.

void OnKeyUp( int vkey )
The OnKeyUp handler is called when the user releases a key with focus in the
control. The vkey argument is the Windows VK Code for the key. This handler
is not called when keys are simulated from within the Web Browser.



Advertising