DTextEntry/OnKeyCodeTyped

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

DescriptionPanelHook

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

NOTE

This hook only works on panels derived from TextEntry, such as DTextEntry.

Arguments

number keyCode

They key code of the key pressed, see KEY_ Enums.

Returns

boolean

Whether you've handled the key press. Returning true prevents the default text entry behavior from occurring.
Personal tools
Navigation