跳至主要內容
版本:23.11.1

Keyboard.up() 方法

發送一個 keyup 事件。

簽名

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

參數

參數

類型

描述

key

KeyInput

要釋放的按鍵名稱,例如 ArrowLeft。請參閱 KeyInput 以取得所有按鍵名稱的列表。

返回

Promise<void>