comp • gb.gtk • key

Key (gb.gtk)

This class is used for getting information about a key event, and contains the constants that represent the keys.

NEVER use the key values directly, as they change between GUI components. Always use these constants!

NEVER use numeric values or the Asc function to test an alphabetic key, use the Key array accessor.

This class is static.
This class acts like a
Returns a key constant from its name.
read-only
static array.

Static properties

Constants
Alt   Code   Control   Meta   Normal   Shift   State   Text   AltKey   BackSpace   BackTab   CapsLock   ControlKey   Del   Delete   Down   End   Enter   Esc   Escape   F1   F10   F11   F12   F13   F14   F15   F16   F17   F18   F19   F2   F20   F21   F22   F23   F24   F3   F4   F5   F6   F7   F8   F9   Help   Home   Ins   Insert   Left   Menu   MetaKey   NumLock   PageDown   PageUp   Pause   PgDown   PgUp   Print   Return   Right   ScrollLock   ShiftKey   Space   SysReq   Tab   Up