Layer.onKeyDown

機能/意味
Key pressed
タイプ
Layerクラスのイベント
構文
onKeyDown(key, shift, process=true)
引数
key  The virtual key code value of the pressed key.
shift  The state of the shift keys and mouse buttons that were pressed at the same time when the key was pressed. It is a combination of the following values by bit OR.
ssAlt : ALT key was pressed
ssShift : SHIFT key was pressed
ssCtrl : CTRL key was pressed
ssLeft : The left mouse button was pressed
ssMiddle : The middle mouse button was pressed
ssRight : The right mouse button was pressed
 If the keyboard is pressed for a long time and a key repeat occurs, the following values are also combined.
ssRepeat : Key repeat occurred
process  If you pass false for this parameter when calling the parent class's onKeyDown, the parent class will not perform default processing (such as moving focus) for that key.
説明
 Occurs when a key is pressed.