fix unicode auto-type on linux

This commit is contained in:
antelle 2016-07-30 22:12:49 +03:00
parent f4c3d59850
commit 4016d5c772
2 changed files with 7 additions and 9 deletions

View File

@ -40,16 +40,13 @@ AutoTypeEmitter.prototype.text = function(text) {
Object.keys(this.mod).forEach(mod => {
this.pendingScript.push('keydown ' + ModMap[mod]);
});
this.pendingScript.push('type ' + text.split('').map(char => {
return char === '\'' ? '"\'"' : '\'' + char + '\'';
}).join(''));
this.waitComplete(err => {
if (err) { return this.callback(err); }
Object.keys(this.mod).forEach(mod => {
this.pendingScript.push('keyup ' + ModMap[mod]);
});
this.callback();
text.split('').map(char => {
this.pendingScript.push('key U' + char.charCodeAt(0).toString(16));
});
Object.keys(this.mod).forEach(mod => {
this.pendingScript.push('keyup ' + ModMap[mod]);
});
this.waitComplete();
};
AutoTypeEmitter.prototype.key = function(key) {

View File

@ -9,6 +9,7 @@ Release notes
`+` option to preload default config and file
`+` save displayed table columns
`-` fix app redraw in background
`-` fix unicode auto-type on mac and linux
##### v1.2.4 (2016-07-20)
`+` digital signature in installer