OnClientBrowserInputFocusChanged: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
Fernando187 (talk | contribs) m (ex) |
||
(3 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== | ||
<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
- onClientBrowserCreated
- onClientBrowserCursorChange
- onClientBrowserDocumentReady
- onClientBrowserInputFocusChanged
- onClientBrowserLoadingFailed
- onClientBrowserLoadingStart
- onClientBrowserNavigate
- onClientBrowserPopup
- onClientBrowserResourceBlocked
- onClientBrowserTooltip
- onClientBrowserWhitelistChange