Garry's Mod Wiki

Revision Difference

TextEntry:OnKeyCodeTyped#526882

<function name="OnKeyCodeTyped" parent="TextEntry" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>⤶ Called from engine whenever a valid character is typed while the text entry is focused.⤶ ⤶ Used internally for functionality of <page>DTextEntry</page>⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="keyCode" type="number">They key code of the key pressed, see <page>Enums/KEY</page>.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Whether you've handled the key press. Returning true prevents the default text entry behavior from occurring.</ret>⤶ </rets>⤶ </function>⤶ ⤶