Skip to content

function disableKey (client-side)

Available since version: 0.3.0

Disable/enable specified keyboard key, like: ESCAPE, TAB, etc.

Declaration

boolean disableKey(number keyId, boolean toggle)

Parameters

  • number keyId: The key code to disable. For more information about key codes, see Key Constants.
  • boolean toggle: true when you want to disable specified keyboard key, otherwise false

Returns boolean

True on success.