TypeScript
NuiFocus
Nui

Nui

toggle the nui focus on both of the keyboard and the mouse

nuiFocus

nuiFocus(keyboard: boolean = true, cursor: boolean = true): Promise<unknown>

Parameters

  • keyboard?: whether to toggle the keyboard focus or not
  • cursor?: whether to toggle the cursor focus or not

Examples

import { nuiFocus } from '@trippler/tr_lib/nui'
 
nuiFocus(false)