mirror of https://github.com/keeweb/keeweb.git
don't close value after generator result applied
This commit is contained in:
parent
ae96fca478
commit
e28d58a1cf
|
@ -125,9 +125,13 @@ var FieldViewText = FieldView.extend({
|
|||
var code = e.keyCode || e.which;
|
||||
if (code === Keys.DOM_VK_RETURN) {
|
||||
if (!this.model.multiline || (!e.altKey && !e.shiftKey && !e.ctrlKey)) {
|
||||
let value = this.gen ? this.gen.password : e.target.value;
|
||||
if (this.gen) {
|
||||
e.target.value = this.gen.password;
|
||||
this.hideGenerator();
|
||||
return;
|
||||
}
|
||||
this.stopListening(Backbone, 'click', this.fieldValueBlur);
|
||||
this.endEdit(value);
|
||||
this.endEdit(e.target.value);
|
||||
}
|
||||
} else if (code === Keys.DOM_VK_ESCAPE) {
|
||||
this.stopListening(Backbone, 'click', this.fieldValueBlur);
|
||||
|
|
Loading…
Reference in New Issue