Version:
interface
KeyboardProviderInterface
A KeyboardActionProvider should provide access to a systems keyboard
typescript
interface KeyboardProviderInterfaceMethods
click
click(keys: Key[]): Promise<void>Click should allow to press a single key via OS level keyboard event
Parameters
Returns
Promise<void>pressKey
pressKey(keys: Key[]): Promise<void>pressKey should allow to press and hold a key via OS level keyboard event
Parameters
Returns
Promise<void>releaseKey
releaseKey(keys: Key[]): Promise<void>releaseKey should release a pressed key via OS level keyboard event
Parameters
Returns
Promise<void>setKeyboardDelay
setKeyboardDelay(delay: number): voidsetKeyboardDelay should allow to configure a delay between key presses
Parameters
delaynumberThe delay between key presses in millisecondstype
type(input: string): Promise<void>type should allow to type a given text via OS level keyboard events
Parameters
inputstringThe text to typeReturns
Promise<void>Was this page helpful?