Gambas Documentation - /comp/gb.sdl/key

/comp/gb.sdl/key

# Key (gb.sdl)

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 (./_get).

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

Static properties | Constants
--- | ---
Alt Code Control Meta Normal Repeat Shift State Text | AltGr Backspace Break CapsLock Compose Delete Down End Esc Escape Euro F1 F10 F11 F12 F13 F14 F15 F2 F3 F4 F5 F6 F7 F8 F9 Help Home Insert KP0 KP1 KP2 KP3 KP4 KP5 KP6 KP7 KP8 KP9 KPDivide KPEnter KPEquals KPMinus KPMultiply KPPeriod KPPlus Left LeftAlt LeftControl LeftMeta LeftShift LeftSuper Menu NumLock PageDown PageUp Pause Power Print Return Right RightAlt RightControl RightMeta RightShift RightSuper ScrollLock Space SysReq Tab Undo Up