comp • gb.qt4 • key

Key (gb.qt4)

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
Returns if the ALT key is pressed.
Alt  
Returns the code of the key.
Code  
Returns if the CONTROL key is pressed.
Control  
Returns if the META key was pressed.
Meta  
Indicates that no special key was pressed. This is inside ..._KeyPress or ..._KeyRelease Events.
Normal  
Returns if the SHIFT key is pressed.
Shift  
Returns the state of the special keys.
State  
Returns the text associated with the key.
Text  
Const AltGrKey As Integer = 16781571
AltGrKey  
Const AltKey As Integer = 16777251
AltKey  
BackSpace   BackTab   CapsLock  
Const ControlKey As Integer = 16777249
ControlKey  
A synoymous for the Key.Delete constant.
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  
A synonymous for the Key.Insert constant.
Ins  
Insert   Left   Menu  
Const MetaKey As Integer = 16777250
MetaKey  
NumLock   PageDown   PageUp   Pause  
A synonymous for the Key.PageDown constant.
PgDown  
A synonymous for the Key.PageUp constant.
PgUp  
Print   Return   Right   ScrollLock  
Const ShiftKey As Integer = 16777248
ShiftKey  
Space   SysReq   Tab   Up