ssCore.Keyboard.unblock

Remove the block on a key so Flash can see it again. The arguments must be exactly the same as those passed to Keyboard.block to remove a block.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

key - A virtual key code.

alt - [Optional] - Alt key state to match (0=up, 1=down) Valid values include: 0 and 1.

shift - [Optional] - Shift key state to match (0=up, 1=down) Valid values include: 0 and 1.

ctrl - [Optional] - Ctrl key state to match (0=up, 1=down) Valid values include: 0 and 1.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Keyboard.unblock( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Keyboard.unblock( paramsObject );


Notes:

None.


Examples:

The following example unblocks the Escape key, which we've set to block using ssCore.Keyboard.block.

ssCore.Keyboard.unblock({key:ssKey.VK_ESCAPE, alt:0, shift:0, ctrl:0});