Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Control
Key
Control
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Key.Code (gb.qt4)

Static Property Read Code As Integer

Returns the code of the key.

Never compare the value of this property with a numeric constant, because the key codes may depend on the underlying toolkit.

Always use the constants defined in this class!

Examples

' Test the combination of CTRL and R keys

IF Key.Code = Key["R"] AND IF Key.Control THEN
  PRINT "You hit CTRL+R"
END IF