Add reopen database keyboard shortcut option

This commit is contained in:
varjolintu 2021-03-02 20:55:47 +02:00
parent d146b6830a
commit 062b7136cc
3 changed files with 15 additions and 11 deletions

View file

@ -28,8 +28,8 @@
"description": "Show password generator text."
},
"contextMenuFillAttribute": {
"message": "Fill attribute…",
"description": "Context menu parent item for filling a custom attribute."
"message": "Fill attribute…",
"description": "Context menu parent item for filling a custom attribute."
},
"multipleCredentialsDetected": {
"message": "HTTP authentication with multiple credentials detected. Click on the extension icon to choose the correct one.",
@ -168,8 +168,8 @@
"description": "Username field icon hover text when database is locked."
},
"usernameDisconnectedFieldText": {
"message": "KeePassXC is disconnected",
"description": "Username field icon hover text when KeePassXC is disconnected."
"message": "KeePassXC is disconnected",
"description": "Username field icon hover text when KeePassXC is disconnected."
},
"usernameFieldIcon": {
"message": "Username field icon",
@ -268,8 +268,8 @@
"description": "Alert message when no credentials are found for the given username."
},
"credentialsNoTOTPFound": {
"message": "No TOTP found.",
"description": "Alert message when no TOTP is found."
"message": "No TOTP found.",
"description": "Alert message when no TOTP is found."
},
"credentialExpired": {
"message": "Expired",
@ -1020,8 +1020,8 @@
"description": "Debug info text."
},
"optionsAboutSupporters": {
"message": "Supporters",
"description": "Supporters label text."
"message": "Supporters",
"description": "Supporters label text."
},
"optionsErrorInvalidValue": {
"message": "Invalid value. Please check the input.",

View file

@ -139,7 +139,8 @@ for (const item of contextMenuItems) {
browser.commands.onCommand.addListener(async (command) => {
if (contextMenuItems.some(e => e.action === command)
|| command === 'redetect_fields'
|| command === 'choose_credential_fields') {
|| command === 'choose_credential_fields'
|| command === 'retrive_credentials_forced') {
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
if (tabs.length) {
browser.tabs.sendMessage(tabs[0].id, { action: command });

View file

@ -112,10 +112,13 @@
"description": "__MSG_contextMenuSaveCredentials__"
},
"redetect_fields": {
"description": "__MSG_popupRedetectButton__"
"description": "__MSG_popupRedetectButton__"
},
"choose_credential_fields": {
"description": "__MSG_popupChooseCredentialsText__"
"description": "__MSG_popupChooseCredentialsText__"
},
"retrive_credentials_forced": {
"description": "__MSG_popupReopenButton__"
}
},
"web_accessible_resources": [