pull/1631/head
antelle 2020-09-09 21:42:37 +02:00
parent 31cc2fbdd4
commit ecaf9a37da
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 6 deletions

View File

@ -82,9 +82,7 @@ AutoTypeEmitter.prototype.text = function (text) {
this.pendingScript.push('keydown ' + ModMap[mod]);
});
text.split('').forEach((char) => {
this.pendingScript.push(
'key ' + 'U' + char.charCodeAt(0).toString(16)
);
this.pendingScript.push('key ' + 'U' + char.charCodeAt(0).toString(16));
});
Object.keys(this.mod).forEach((mod) => {
this.pendingScript.push('keyup ' + ModMap[mod]);
@ -100,9 +98,7 @@ AutoTypeEmitter.prototype.key = function (key) {
}
key = KeyMap[key].toString();
}
this.pendingScript.push(
'key --clearmodifiers ' + this.modString() + key
);
this.pendingScript.push('key --clearmodifiers ' + this.modString() + key);
if (isSpecialKey) {
this.waitComplete();
} else {