Skip to content

Commit 42a7c5f

Browse files
committed
(#87) Updated keyboard samples
1 parent 10b0239 commit 42a7c5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/keyboard.class.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export class Keyboard {
3333

3434
/**
3535
* {@link type} types a sequence of {@link String} or single {@link Key}s via system keyboard
36+
* @example
37+
* ```typescript
38+
* await keyboard.type(Key.A, Key.S, Key.D, Key.F);
39+
* await keyboard.type("Hello, world!");
40+
* ```
41+
*
3642
* @param input Sequence of {@link String} or {@link Key} to type
3743
*/
3844
public type(...input: StringOrKey): Promise<Keyboard> {

0 commit comments

Comments
 (0)