OnClientBrowserInputFocusChanged: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (ex)
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client_event}}
{{Client_event}}
{{Needs_Example}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
This event is triggered when the input focus inside a browser has changed.
This event is triggered when the input focus inside a browser has changed.
Line 17: Line 16:
==Example==  
==Example==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
 
addEventHandler("onClientBrowserInputFocusChanged", root, function(gainedFocus)
  iprint(source, "gainedFocus:", gainedFocus)
end)
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{CEF_events}}
{{CEF_events}}

Latest revision as of 15:25, 1 June 2025

This event is triggered when the input focus inside a browser has changed.

Parameters

bool gainedFocus
  • gainedFocus: true if an input field has been focused, false if it has lost focus.

Source

The browser element.

Example

addEventHandler("onClientBrowserInputFocusChanged", root, function(gainedFocus)
  iprint(source, "gainedFocus:", gainedFocus)
end)

See Also