Methods
down
- down(key: string, options?: { text?: string }): Promise<void>
-
Parameters
-
key: string
-
Optional options: { text?: string }
Returns Promise<void>
press
- press(key: string, options?: { delay?: number; text?: string }): Promise<void>
-
Parameters
-
key: string
-
Optional options: { delay?: number; text?: string }
-
Optional delay?: number
-
Optional text?: string
Returns Promise<void>
sendCharacter
- sendCharacter(char: string): Promise<void>
-
Parameters
Returns Promise<void>
type
- type(text: string, options?: { delay?: number }): Promise<void>
-
Parameters
-
text: string
-
Optional options: { delay?: number }
Returns Promise<void>
up
- up(key: string): Promise<void>
-
Parameters
Returns Promise<void>
Keyboard provides an api for managing a virtual keyboard.