yodaRT.activity.Activity. KeyboardClient

Extends

Methods

preventDefaults(keyCode) → {Promise.<void>}

Intercepts all events for key code until restores default behavior by KeyboardClient.restoreDefaults

Parameters:
Name Type Description
keyCode number
Returns:
Type:
Promise<void>

restoreDefaults(keyCode) → {Promise.<void>}

Restore default behavior of key code.

Parameters:
Name Type Description
keyCode number
Returns:
Type:
Promise<void>

restoreAll() → {Promise.<void>}

Restore default behavior of all key codes.

Returns:
Type:
Promise<void>

Events

keydown

Parameters:
Name Type Description
event object
Name Type Description
keyCode number

keyup

Parameters:
Name Type Description
event object
Name Type Description
keyCode number

click

Parameters:
Name Type Description
event object
Name Type Description
keyCode number

dbclick

Parameters:
Name Type Description
event object
Name Type Description
keyCode number

longpress

Parameters:
Name Type Description
event object
Name Type Description
keyCode number