OnClientBrowserInputFocusChanged: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
Fernando187 (talk | contribs) m (ex) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client_event}} | {{Client_event}} | ||
{{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 10: | 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