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
intkeyId: The key code to disable. For more information about key codes, see Key Constants.booltoggle: true when you want to disable specified keyboard key, otherwise false
Returns bool
True on success.