Garry's Mod Wiki

PANEL:OnKeyCodePressed

Description

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

This is not run for ESC/"cancelselect" binding.

Arguments

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

Returns

1 boolean
Return true to suppress default action.

Page Links


Special Pages


Wikis

?

Render Time: 44ms

Session 0
DB GetPage 8
Generate Html 9
SaveChanges 13
Render Body 0
Render Sidebar 11