KeyboardClass class constructor
Config object for KeyboardClass class
pressKey presses and holds a single Key for Key combinations Modifier Keys are to be given in "natural" ordering, so first modifier Keys, followed by the Key to press
// Will press and hold key combination STRG + V
await keyboard.pressKey(Key.STRG, Key.V);
pressKey releases a single Key for Key combinations Modifier Keys are to be given in "natural" ordering, so first modifier Keys, followed by the Key to press
// Will release key combination STRG + V
await keyboard.releaseKey(Key.STRG, Key.V);
Rest
...input: StringOrKeySequence of String or Key to type
await keyboard.type(Key.A, Key.S, Key.D, Key.F);
await keyboard.type("Hello, world!");
Generated using TypeDoc
KeyboardClass class provides methods to emulate keyboard input