mirror of https://github.com/keeweb/keeweb.git
fix #372: hide generator on lock
This commit is contained in:
parent
6d207143ff
commit
9379ee3d44
|
@ -33,7 +33,7 @@ var FieldViewText = FieldView.extend({
|
|||
click: this.fieldValueInputClick.bind(this),
|
||||
mousedown: this.fieldValueInputMouseDown.bind(this)
|
||||
});
|
||||
this.listenTo(Backbone, 'click main-window-will-close', this.fieldValueBlur);
|
||||
this.listenTo(Backbone, 'click main-window-will-close user-idle', this.externalEndEdit);
|
||||
if (this.model.multiline) {
|
||||
this.setInputHeight();
|
||||
}
|
||||
|
@ -150,6 +150,12 @@ var FieldViewText = FieldView.extend({
|
|||
e.stopPropagation();
|
||||
},
|
||||
|
||||
externalEndEdit: function() {
|
||||
if (this.input) {
|
||||
this.endEdit(this.input.val());
|
||||
}
|
||||
},
|
||||
|
||||
endEdit: function(newVal, extra) {
|
||||
if (this.gen) {
|
||||
this.hideGenerator();
|
||||
|
|
Loading…
Reference in New Issue