mirror of https://github.com/keeweb/keeweb.git
fix unicode auto-type on linux
This commit is contained in:
parent
f4c3d59850
commit
4016d5c772
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue