KeyboardInputEvent Object extends InputEvent
type
string -The type of the event, can be事件的类型可以是keyDown
,keyUp
orchar
.keyDown
、keyUp
或char
。keyCode
string -The character that will be sent as the keyboard event.将作为键盘事件发送的字符。Should only use the valid key codes in Accelerator.应仅使用Accelerator中的有效钥匙代码。