User manual - Web_Browser_Prog_Guide

NAURTECH WEB BROWSER SMART CLIENTS FOR WINDOWS CE .NET / POCKET 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.