Skip to content

HandleSaveKey - cWebView

Called by the client when a Save key is pressed

Type: Procedure

Parameters

Parameter Type Description
iKey Integer The JavaScript key code of the pressed key
bShift Boolean True if the Shift key was down
bAlt Boolean True if the Alt key was down
bCtrl Boolean True if the Ctrl key was down

Syntax

Procedure HandleSaveKey Integer iKey Boolean bShift Boolean bAlt Boolean bCtrl

Call Example

Send HandleSaveKey iKey bShift bAlt bCtrl

Description

This published procedure is called by the client when a Save key is pressed.

It will perform the proper Save operation if pbSaveKeys is set to True and the iKey matches the JavaScript key code for one the Save keys.

JavaScript key codes need to be used to define which key we are handling. See http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes to learn these.