fix #1409: fixed auto-typing Tab character on Debian

This commit is contained in:
antelle 2020-05-23 17:07:59 +02:00
parent 8de55c450a
commit aa899b8096
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 9 additions and 3 deletions

View File

@ -95,16 +95,21 @@ AutoTypeEmitter.prototype.text = function(text) {
};
AutoTypeEmitter.prototype.key = function(key) {
if (typeof key !== 'number') {
const isSpecialKey = typeof key !== 'number';
if (isSpecialKey) {
if (!KeyMap[key]) {
return this.callback('Bad key: ' + key);
}
key = KeyMap[key].toString(16);
key = KeyMap[key].toString();
}
this.pendingScript.push(
'key --clearmodifiers ' + this.windowParameter + this.modString() + key
);
this.callback();
if (isSpecialKey) {
this.waitComplete();
} else {
this.callback();
}
};
AutoTypeEmitter.prototype.copyPaste = function(text) {

View File

@ -15,6 +15,7 @@ Release notes
`-` fix #620: clearing middle-click clipboard in Linux
`-` fix #1440: fixed auto-type for maximized windows
`-` fix #1509: fixed auto-type for tiling mode in Linux
`-` fix #1409: fixed auto-typing Tab character on Debian
##### v1.14.3 (2020-05-15)
`*` improved exporting files with markdown notes