mirror of https://github.com/keeweb/keeweb.git
fix #473: entry auto-type context menu
This commit is contained in:
parent
c6d6e4eeb8
commit
acbb36fc46
|
@ -231,6 +231,7 @@
|
|||
"detClone": "Make a copy",
|
||||
"detClonedName": "Copy",
|
||||
"detAutoType": "Auto-type",
|
||||
"detAutoTypeSettings": "Auto-type settings",
|
||||
"detAutoTypeEnabled": "Enable auto-type for this entry",
|
||||
"detAutoTypeSequence": "Keystrokes",
|
||||
"detAutoTypeInput": "Input",
|
||||
|
|
|
@ -251,7 +251,7 @@ const DetailsView = Backbone.View.extend({
|
|||
}
|
||||
moreOptions.push({value: 'otp', icon: 'clock-o', text: Locale.detSetupOtp});
|
||||
if (AutoType.enabled) {
|
||||
moreOptions.push({value: 'auto-type', icon: 'keyboard-o', text: Locale.detAutoType});
|
||||
moreOptions.push({value: 'auto-type', icon: 'keyboard-o', text: Locale.detAutoTypeSettings});
|
||||
}
|
||||
moreOptions.push({value: 'clone', icon: 'clone', text: Locale.detClone});
|
||||
const rect = this.moreView.labelEl[0].getBoundingClientRect();
|
||||
|
@ -774,6 +774,9 @@ const DetailsView = Backbone.View.extend({
|
|||
}
|
||||
options.push({ value: 'det-add-new', icon: 'plus', text: Locale.detMenuAddNewField });
|
||||
options.push({ value: 'det-clone', icon: 'clone', text: Locale.detClone });
|
||||
if (AutoType.enabled) {
|
||||
options.push({ value: 'det-auto-type', icon: 'keyboard-o', text: Locale.detAutoType });
|
||||
}
|
||||
Backbone.trigger('show-context-menu', _.extend(e, { options }));
|
||||
},
|
||||
|
||||
|
@ -791,6 +794,9 @@ const DetailsView = Backbone.View.extend({
|
|||
case 'det-clone':
|
||||
this.clone();
|
||||
break;
|
||||
case 'det-auto-type':
|
||||
this.autoType();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ Release notes
|
|||
`+` file path hint in recent files list
|
||||
`+` cacheConfigSettings config option
|
||||
`+` keyboard-accessible autocomplete
|
||||
`+` entry auto-type context menu
|
||||
|
||||
##### v1.4.0 (2017-02-04)
|
||||
KDBX4 format support and minor improvements
|
||||
|
|
Loading…
Reference in New Issue