الرئيسية > comp > gb.qt > key > code 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
Key.Code (gb.qt)
STATIC PROPERTY READ Code AS Integer

Returns the code of the key.

Never compare the value of this خصائص 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