Garry's Mod Wiki

PANEL:OnKeyCodeReleased

  boolean PANEL:OnKeyCodeReleased( number keyCode )

Description

Called whenever a keyboard key was released while the panel is focused.

This is not run for TILDE/"toggleconsole" binding.

Issue Tracker: 2886

Arguments

1 number keyCode
The key code of the released key, see KEY enum.

Returns

1 boolean
Return true to suppress default action.