Revision Difference
PANEL:OnFocusChanged#548167
<function name="OnFocusChanged" parent="PANEL" type="hook">
<ishook>yes</ishook>
<description>
Called whenever the panel gained or lost focus.
<note><page>Panel:HasFocus</page> will only be updated on the next frame and will return the "old" value at the time this hook is run. Same goes for <page>vgui.GetKeyboardFocus</page>.</note>
</description>
<realm>Client</realm>
<predicted>No</predicted>
<hidepredictionwarning>No</hidepredictionwarning>
<args>
<arg name="panel" type="Panel">Panel affected by focus change</arg>⤶
<arg name="gained" type="boolean">If the focus was gained ( true ) or lost ( false )</arg>
</args>
</function>