mirror of https://github.com/keeweb/keeweb.git
fix #301: inline generator keyboard management
This commit is contained in:
parent
f94493a82c
commit
e88de37314
|
@ -125,8 +125,9 @@ 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;
|
||||
this.stopListening(Backbone, 'click', this.fieldValueBlur);
|
||||
this.endEdit(e.target.value);
|
||||
this.endEdit(value);
|
||||
}
|
||||
} else if (code === Keys.DOM_VK_ESCAPE) {
|
||||
this.stopListening(Backbone, 'click', this.fieldValueBlur);
|
||||
|
@ -135,6 +136,9 @@ var FieldViewText = FieldView.extend({
|
|||
e.preventDefault();
|
||||
this.stopListening(Backbone, 'click', this.fieldValueBlur);
|
||||
this.endEdit(e.target.value, { tab: { field: this.model.name, prev: e.shiftKey } });
|
||||
} else if (code === Keys.DOM_VK_G) {
|
||||
e.preventDefault();
|
||||
this.showGenerator();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ Release notes
|
|||
`+` option to preload default config and file
|
||||
`+` save displayed table columns
|
||||
`+` confirmation in password change dialog
|
||||
`+` inline generator keyboard management
|
||||
`-` fix app redraw in background
|
||||
`-` fix idle timer on computer sleep
|
||||
|
||||
|
|
Loading…
Reference in New Issue