Skip to content

function disableKey (client-side)

Available since version: 0.3.0

This function will disable/enable specified keyboard key, like: ESCAPE, TAB, etc.

Declaration

bool disableKey(int keyId, bool toggle)

Parameters

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

Returns bool

True on success.