Keyboard shortcut to switch between logged-in accounts #22791
ambrozt
started this conversation in
Password Manager
Replies: 1 comment
|
✨ Thank you for your code contribution proposal! While the Bitwarden team reviews your submission, we encourage you to check out our contribution guidelines. Please ensure that your code contribution includes a detailed description of what you would like to contribute, along with any relevant screenshots and links to existing feature requests. This information helps us gather feedback from the community and Bitwarden team members before you start writing code. To keep discussions focused, posts that do not include a proposal for a code contribution will be removed.
Thank you for contributing to Bitwarden! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
✅ Code Contribution Proposal
Code Contribution Proposal
Problem
The browser extension supports being logged into multiple accounts at once (personal + org vaults, in my case), and autofill already has a dedicated keyboard shortcut. But switching the active account still requires opening the popup and clicking through the account switcher UI every time — there's no equivalent hotkey, even though the extension already tracks "next account to switch to" internally for other purposes (it's used as a fallback when the current account logs out).
For anyone juggling more than one account regularly, that's a lot of extra clicks for something that could be a single keypress.
Proposal
Add a new extension command,
switch_account("Switch to the next account"), that cycles to the next logged-in account by most-recent-activity order — the same ordering the extension already uses internally (AccountService.nextUpAccount$). No popup interaction required; it runs entirely in the background script, the same way the existinglock_vaultcommand does.It wouldn't ship with a default keybinding — Chrome/Firefox cap extensions at 4 commands with a pre-assigned default, and 3 of those are already spoken for (open popup, autofill login, generate password). Users would bind it themselves via
chrome://extensions/shortcuts, the same waylock_vault,autofill_card, andautofill_identitywork today.Scope
This turned out to be a small, low-risk change — it reuses existing building blocks rather than adding new architecture:
nextUpAccount$) and the actual account-switch logic (MainBackground.switchAccount()) both already exist and are used elsewhere.I have a working prototype against
mainif that's useful to share.All reactions