Skip to main content
Version: 23.5.0

Keyboard.up() 方法

¥Keyboard.up() method

调度 keyup 事件。

¥Dispatches a keyup event.

签名

¥Signature

class Keyboard {
abstract up(key: KeyInput): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

key

KeyInput

要释放的密钥的名称,例如 ArrowLeft。有关所有键名称的列表,请参阅 KeyInput

Returns:

Promise<void>