OnKeyDown

<< Click to Display Table of Contents >>

Manual > Control Reference > Common to all controls > Common events >

OnKeyDown


 

Occurs when a key is pressed (only when the control has focus).

 


syntax

event OnKeyDown(

         keycode,

         flag

         )

 


Parameters

 

keycode

 

Type:

Number

 

The virtual key code of the pressed key. For information on virtual key codes, see OnKeyUp.

 

flag

 

Type:

Number

 

When a key is pressed, it indicates which other keys are pressed at the same time. It can also identify the state of mouse buttons.

The numeric value will be a combination (logical OR) of the following values:

- The left mouse button is pressed 1

- The right mouse button is pressed 2

- The shift key is pressed. 4

・The control key is pressed    8

- The middle mouse button is pressed 16

 


hmtoggle_plus1Example

 


Supported


×

Script Action

○

Browser script

×

Calculation Expression Syntax

 


reference