DTextEntry/SetEnterAllowed

From Garry's Mod
Jump to: navigation, search
 DTextEntry:SetEnterAllowed( )

DescriptionPanelFunc

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.

Arguments

boolean allowEnter

If set to false, pressing Enter will not cause the panel to lose focus and will never call DTextEntry:OnEnter.
Personal tools
Navigation