Garry's Mod Wiki

TextEntry:OnKeyCodeTyped

  boolean TextEntry:OnKeyCodeTyped( number keyCode )

Description

Called from engine whenever a valid character is typed while the text entry is focused.

Used internally for functionality of DTextEntry

Arguments

1 number keyCode
They key code of the key pressed, see Enums/KEY.

Returns

1 boolean
Whether you've handled the key press. Returning true prevents the default text entry behavior from occurring.