ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientBrowserInputFocusChanged

Event

onClientBrowserInputFocusChanged

ClientBrowserIdentical to MTA:SA

A text field on the page got or lost focus. Useful for turning on the keyboard for the browser.

Handler

addEventHandler("onClientBrowserInputFocusChanged", root, function(gainedFocus) ... end)

Parameters

gainedFocusbool
true = field active.

Source

source is the browser.

Example

addEventHandler("onClientBrowserInputFocusChanged", root, function(focused)
    guiSetInputEnabled(focused)
end)

See also