Key (gb.qt4)
This class is used for getting information about a key event,
and contains the constants that represent the keys.
The key event information is only available during a keyboard event handler.
NEVER use the key values directly, as they change between GUI components. Always use these constants!
The Integer values shown for constants below are the values the QT toolkit provides.
They will be different for GTK+.
For example:
Const ControlKey As Integer = 16777249 with QT,
but...
Const ControlKey As Integer = 65507 with GTK+.
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
read-only static array.
Constants
Static properties
Alt
Returns if the
ALT key is pressed.
Code
Returns the code of the key.
Control
Returns if the
CONTROL key is pressed.
Meta
Returns if the
META key was pressed.
Normal
Indicates that no special key was pressed.
Shift
Returns if the
SHIFT key is pressed.
Shortcut
Return a string representation of a key with all modifiers.
State
Returns the state of the special keys.
Text
Returns the text associated with the key.
Static methods
Send
Send a keyboard press event and keyboard release event to the current focused control corresponding to the specified
Shortcut.