mirror of https://github.com/keeweb/keeweb.git
fix #1278: entry selection auto-type window issues
This commit is contained in:
parent
511fccd084
commit
8bfa1fadda
|
@ -28,6 +28,7 @@ const AutoType = {
|
||||||
Events.on('auto-type', e => this.handleEvent(e));
|
Events.on('auto-type', e => this.handleEvent(e));
|
||||||
Events.on('main-window-blur', e => this.resetPendingEvent(e));
|
Events.on('main-window-blur', e => this.resetPendingEvent(e));
|
||||||
Events.on('main-window-will-close', e => this.resetPendingEvent(e));
|
Events.on('main-window-will-close', e => this.resetPendingEvent(e));
|
||||||
|
appModel.files.on('change', () => this.processPendingEvent());
|
||||||
},
|
},
|
||||||
|
|
||||||
handleEvent(e) {
|
handleEvent(e) {
|
||||||
|
@ -209,7 +210,6 @@ const AutoType = {
|
||||||
const evt = { filter, windowInfo };
|
const evt = { filter, windowInfo };
|
||||||
if (!this.appModel.files.hasOpenFiles()) {
|
if (!this.appModel.files.hasOpenFiles()) {
|
||||||
this.pendingEvent = evt;
|
this.pendingEvent = evt;
|
||||||
this.appModel.files.once('change', this.processPendingEvent, this);
|
|
||||||
logger.debug('auto-type event delayed');
|
logger.debug('auto-type event delayed');
|
||||||
this.focusMainWindow();
|
this.focusMainWindow();
|
||||||
} else {
|
} else {
|
||||||
|
@ -262,7 +262,6 @@ const AutoType = {
|
||||||
resetPendingEvent() {
|
resetPendingEvent() {
|
||||||
if (this.pendingEvent) {
|
if (this.pendingEvent) {
|
||||||
this.pendingEvent = null;
|
this.pendingEvent = null;
|
||||||
this.appModel.files.off('change', this.processPendingEvent, this);
|
|
||||||
logger.debug('auto-type event cancelled');
|
logger.debug('auto-type event cancelled');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -273,7 +272,6 @@ const AutoType = {
|
||||||
}
|
}
|
||||||
logger.debug('processing pending auto-type event');
|
logger.debug('processing pending auto-type event');
|
||||||
const evt = this.pendingEvent;
|
const evt = this.pendingEvent;
|
||||||
this.appModel.files.off('change', this.processPendingEvent, this);
|
|
||||||
this.pendingEvent = null;
|
this.pendingEvent = null;
|
||||||
this.processEventWithFilter(evt);
|
this.processEventWithFilter(evt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
||||||
-------------
|
-------------
|
||||||
##### v1.11.4 (2019-09-29)
|
##### v1.11.4 (2019-09-29)
|
||||||
`-` fix #1277: auto-type window matching on Linux
|
`-` fix #1277: auto-type window matching on Linux
|
||||||
|
`-` fix #1278: entry selection auto-type window issues
|
||||||
`-` fixed displaying errors on the plugins page
|
`-` fixed displaying errors on the plugins page
|
||||||
|
|
||||||
##### v1.11.3 (2019-09-29)
|
##### v1.11.3 (2019-09-29)
|
||||||
|
|
Loading…
Reference in New Issue