comp • gb.qt4 • key • code

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!


' 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