Skip to content

Commit 38a7e85

Browse files
authored
(#238) Iterate over input string in keyboard.type without splitting to properly process UTF-16 codepoints (#433)
1 parent c5fb450 commit 38a7e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/keyboard.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class KeyboardClass {
4545
return new Promise<KeyboardClass>(async (resolve, reject) => {
4646
try {
4747
if (inputIsString(input)) {
48-
for (const char of input.join(" ").split("")) {
48+
for (const char of input.join(" ")) {
4949
await sleep(this.config.autoDelayMs);
5050
await this.providerRegistry.getKeyboard().type(char);
5151
}

0 commit comments

Comments
 (0)