Home / comp / gb.qt / key / code 
Key.Code (gb.qt)
Syntax
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!

Example
'Combination key CTRL + R
IF Key.Code=Asc("R") THEN
  IF Key.Control THEN
    PRINT "Gambas"
  END IF
END IF

Gambas