Garry's Mod Wiki

DTextEntry:GetEnterAllowed

  boolean DTextEntry:GetEnterAllowed()

Description

Returns whether pressing Enter can cause the panel to lose focus. Note that a multiline DTextEntry cannot be escaped using the Enter key even when this function returns true.

Returns

1 boolean
Whether pressing the Enter key can cause the panel to lose focus.