OnClientBrowserInputFocusChanged: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client_event}} {{New feature/item|3.0150|1.5|| This event is triggered when the input focus inside a browser has changed. }} ==Parameters== <syntaxhighlight lang="lua"> bool ga...")
 
m (ex)
 
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
bool gainedFocus
bool gainedFocus
</syntaxhighlight>
</syntaxhighlight>
*'''gainedFocus''': ''true'' if an input field has been focused, ''false'' if it has lost focus
*'''gainedFocus''': ''true'' if an input field has been focused, ''false'' if it has lost focus.


==Source==
==Source==
The [[Element/Browser|browser]] element
The [[Element/Browser|browser]] element.


==Example==  
==Example==  
{{Needs_Example}}
<syntaxhighlight lang="lua">
addEventHandler("onClientBrowserInputFocusChanged", root, function(gainedFocus)
  iprint(source, "gainedFocus:", gainedFocus)
end)
</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