Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Assign Ctrl+Shift+L default keyboard shortcut to browser extension manual autofill prompt (#2221)
Leendert de Borstd11839017355
diff --git a/apps/browser-extension/src/entrypoints/content.ts b/apps/browser-extension/src/entrypoints/content.tsindex fbc6191c5..72bdbdc56 100644--- a/apps/browser-extension/src/entrypoints/content.ts+++ b/apps/browser-extension/src/entrypoints/content.ts@@ -758,13 +758,16 @@ export default defineContentScript({const canShowPopup = forceShow || (await isSiteAllowed() && formDetector.isAutofillTriggerableField());if (canShowPopup) {- // Check the per-popup-type feature toggle (credential vs TOTP, etc.)- if (!await POPUP_RUNTIME[popupType].enabled()) {+ /*+ * Check the per-popup-type feature toggle (credential vs TOTP, etc.), unless the+ * popup was explicitly requested (keyboard shortcut / context menu = force show).+ */+ if (!forceShow && !await POPUP_RUNTIME[popupType].enabled()) {return;}injectIcon(inputElement, container, detectedFieldType ?? undefined);- await showPopupWithAuthCheck(inputElement, container, popupType);+ await showPopupWithAuthCheck(inputElement, container, popupType, forceShow);}}diff --git a/apps/browser-extension/wxt.config.ts b/apps/browser-extension/wxt.config.tsindex 5c706debb..f216393dd 100644--- a/apps/browser-extension/wxt.config.ts+++ b/apps/browser-extension/wxt.config.ts@@ -63,6 +63,10 @@ export default defineConfig({],commands: {"show-autofill-popup": {+ suggested_key: {+ default: "Ctrl+Shift+L",+ mac: "Command+Shift+L"+ },description: "Show the autofill popup (while focusing an input field)"}},