Garry's Mod Wiki

DTextEntry:OnKeyCode

  DTextEntry:OnKeyCode( number keyCode )

Description

Called from DTextEntry's TextEntry:OnKeyCodeTyped override whenever a valid character is typed while the text entry is focused.

Arguments

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