Garry's Mod Wiki

Revision Difference

DTextEntry:SetEnterAllowed#515154

<function name="SetEnterAllowed" parent="DTextEntry" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Sets whether pressing the Enter key will cause the DTextEntry to lose focus or not, provided it is not multiline. This is true by default.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="allowEnter" type="boolean">If set to false, pressing Enter will not cause the panel to lose focus and will never call &lt;page&gt;DTextEntry:OnEnter&lt;/page&gt;.</arg>⤶ </args>⤶ </function>⤶ ⤶